Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
IoFile Class Reference

IoFile is a class for reading binary or ascii file using internally a CStdioFileEx. More...

Detailed Description

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)
 
FILEGetFileStream (void)
 
CXFileGetCFile (void)
 
CStdioFileExGetTextFile (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 ()
 
CXFileFindGetFileFinder ()
 
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)
 

The documentation for this class was generated from the following file: