// EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION // // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Emergent Game Technologies and may not // be copied or disclosed except in accordance with the terms of that // agreement. // // Copyright (c) 1996-2008 Emergent Game Technologies. // All Rights Reserved. // // Emergent Game Technologies, Chapel Hill, North Carolina 27517 // http://www.emergent.net #ifndef NIFILEISTREAM_H #define NIFILEISTREAM_H // define NOMINMAX to avoid all the errors and warnings // from template struct limits #define NOMINMAX #include #include #if defined(WIN32) || defined(_XENON) #pragma warning(push) #pragma warning(disable: 4244) #pragma warning(disable: 4996) #endif #include #include #include #include #include #include #include #include #include #include #include #include #if defined(WIN32) || defined(_XENON) #pragma warning( pop ) #endif class NiFileIStream : public Imf::IStream { public: NiFileIStream(NiFile *pkFile); ~NiFileIStream() {;}; virtual bool read (char c[], int n); virtual Imf::Int64 tellg(); virtual void seekg(Imf::Int64 pos); virtual void clear(); private: NiFile* m_pkNiFile; }; #endif