X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ffileio.h;h=84755a0ac5391d77e30698b48aa8ccfe91437865;hb=eb39f1bb5e6518c5dc4f4dbd3c88912a97192e95;hp=d4fc9d585efc2fe776bc08470989a782a1852c6e;hpb=db0a3d91f37031e155cc8eac7cfdec9889f233ee;p=architektonas diff --git a/src/fileio.h b/src/fileio.h index d4fc9d5..84755a0 100644 --- a/src/fileio.h +++ b/src/fileio.h @@ -3,8 +3,6 @@ #include #include "structs.h" -//class Container; -//class Object; // NB: The methods in this class are all static, so there's no need to // instantiate an object of this type to use its functions. @@ -14,9 +12,17 @@ class FileIO public: static bool SaveAtnsFile(FILE *, Container *); static bool LoadAtnsFile(FILE *, Container *); + static void ResetLayerVectors(void); private: - static bool GetObjectFromFile(FILE *, Object *, Object **, int *); + static bool LoadVersion1_0(FILE *, Container *); + static bool LoadVersion1_1(FILE *, Container *); + static bool LoadVersion1_2(FILE *, Container *); +// static bool GetObjectFromFile(FILE *, Object *, Object **, int *); + static Object * GetObjectFromFile(FILE *, bool extended = false, bool ext2 = false); + static bool WriteObjectToFile(FILE *, Object *); + + static int objectFileType; }; #endif // __FILEIO_H__