![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
00001 // 00002 // 00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine 00004 // 00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk 00006 // 00007 // For updates, tutorials and more details check out www.appeasymobile.com 00008 // 00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin. 00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support 00011 // 00012 // 00013 00014 #if !defined(_CCZ_PLATFORM_FILE_H_) 00015 #define _CCZ_PLATFORM_FILE_H_ 00016 00017 #include "IzPlatformFile.h" 00018 00019 class CzPlatformFile : public IzPlatformFile 00020 { 00021 // Properties 00022 protected: 00023 public: 00024 // Properties end 00025 public: 00026 int Init(); 00027 void Release(); 00028 00029 CzFileHandle Open(const char* filename, const char* mode); 00030 CzFileHandle OpenFromMemory(void* memory, uint num_bytes); 00031 void Close(CzFileHandle file); 00032 bool Seek(CzFileHandle file, int offset, eCzFileSeekOrigin origin); 00033 uint Read(CzFileHandle file, void* buffer, uint num_bytes); 00034 uint Write(CzFileHandle file, void* buffer, uint num_bytes); 00035 bool Exists(const char* filename); 00036 bool Delete(const char* filename); 00037 int getSize(CzFileHandle file); 00038 const char* getErrorString(); 00039 }; 00040 00041 00042 #endif // _CCZ_PLATFORM_FILE_H_