///////////////////////////////////////////////////////////////////////////1//2// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas3// Digital Ltd. LLC4//5// All rights reserved.6//7// Redistribution and use in source and binary forms, with or without8// modification, are permitted provided that the following conditions are9// met:10// * Redistributions of source code must retain the above copyright11// notice, this list of conditions and the following disclaimer.12// * Redistributions in binary form must reproduce the above13// copyright notice, this list of conditions and the following disclaimer14// in the documentation and/or other materials provided with the15// distribution.16// * Neither the name of Industrial Light & Magic nor the names of17// its contributors may be used to endorse or promote products derived18// from this software without specific prior written permission.19//20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS21// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT22// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR23// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT24// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,25// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT26// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,27// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY28// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE30// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.31//32///////////////////////////////////////////////////////////////////////////333435//-----------------------------------------------------------------------------36//37// Low-level file input and output for OpenEXR.38//39//-----------------------------------------------------------------------------4041#include <ImfIO.h>42#include "Iex.h"4344namespace Imf {454647IStream::IStream (const char fileName[]): _fileName (fileName)48{49// empty50}515253IStream::~IStream ()54{55// empty56}575859bool60IStream::isMemoryMapped () const61{62return false;63}646566char *67IStream::readMemoryMapped (int)68{69throw Iex::InputExc ("Attempt to perform a memory-mapped read "70"on a file that is not memory mapped.");71return 0;72}737475void76IStream::clear ()77{78// empty79}808182const char *83IStream::fileName () const84{85return _fileName.c_str();86}878889OStream::OStream (const char fileName[]): _fileName (fileName)90{91// empty92}939495OStream::~OStream ()96{97// empty98}99100101const char *102OStream::fileName () const103{104return _fileName.c_str();105}106107108} // namespace Imf109110111