![]() |
Polygon Crucher SDK - Documentation
Documentation
|
IoFile is a class for reading binary or ascii file using internally a CStdioFileEx. More...
IoFile is a class for reading binary or ascii file using internally a CStdioFileEx.
IoFile can also write data to a memory block using internally a CCustomMemFile.
IoFile can be used to as a file finder using internally a CXFileFind
#include <IoFile.h>
Public Member Functions | |
| IoFile (unsigned int ioFileFlags) | |
| IoFile (bool silentMode, unsigned int ioFileFlags) | |
| void | Init (unsigned int ioFileFlags) |
| void | DeleteFiles () |
| bool | GetErrorMessage (CXString &error, CXException *e=NULL) |
| void | ReportError (CXException *e=NULL) |
| FILE * | GetFileStream (void) |
| CXFile * | GetCFile (void) |
| CStdioFileEx * | GetTextFile (void) |
| CXString | GetFileName (void) |
| CXString | GetFilePath () |
| CXString | GetName () |
| bool | OpenFile (const CXString &name, bool load, CXFileException *pException=NULL) |
| void | CloseFile (bool abort=false) |
| void | CloseAndDeleteFile (bool abort=false) |
| bool | FindFileOpen (const CXString &name, const CXString &extension=CXString(), FILENAME_TYPE qualifyType=FILENAME_UNKNOWN) |
| bool | FindFileNext (CXString &, bool &matchExtension, bool noPath=false) |
| void | FindFileClose () |
| CXFileFind * | GetFileFinder () |
| bool | IsWriting () const |
| bool | IsBinaryMode () const |
| unsigned int | FileBufferRead (void *ptr, unsigned int sz) |
| bool | FileRead (void *ptr, unsigned int sz) |
| void | WriteFloat (float value) |
| void | WriteInt (int value) |
| void | WriteUInt (unsigned int value) |
| void | WriteShort (short value) |
| void | WriteUShort (unsigned short value) |
| void | WriteChar (char value) |
| void | WriteUChar (unsigned char value) |
| void | FileWrite (const void *ptr, unsigned int sz) |
| void | FileReverseWrite (void *ptr, unsigned int sz) |
| void | FileReverseWrite (void *ptr, unsigned int elementNbr, unsigned int elementSize) |
| void | Flush () |
| bool | FileSeek (longint offset, CXFile::SeekPosition type) |
| fileuint | FileGetPosition () |
| fileuint | FileGetLength () |
| bool | FileReverseRead (void *ptr, unsigned int sz) |
| bool | FileReverseRead (void *ptr, unsigned int elementNbr, unsigned int elementSize) |
| bool | ReadString (CXString &rString) |
| void | WriteString (LPCTSTR wString) |