00001 #ifndef _IGS_FILEIO_ 00002 #define _IGS_FILEIO_ 00003 00004 #include "IGS_Object.h" 00005 #include <vector> 00006 00007 class IGS_FileIo 00008 { 00009 public: 00010 IGS_FileIo(); 00011 IGS_FileIo( const IGS_FileIo& right ); 00012 ~IGS_FileIo(); 00013 00014 void AddObject( IGS_Object* addme ); 00015 void ClearObjects(); 00016 void SaveObjectsToFile( const char* filename ); 00017 00018 protected: 00019 00020 void ReallocateBuffer( const int bufferSize ); 00021 00022 char* m_Buffer; 00023 int m_BufferSize; 00024 std::vector< IGS_Object* > m_Objects; 00025 }; 00026 00027 00028 //these are the 4 byte binary codes that represent each object in the system 00029 00030 #endif