Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CXMemFile Class Reference
Inheritance diagram for CXMemFile:
CXFile CCustomMemFile

Public Member Functions

 CXMemFile (unsigned int nGrowBytes=DefaultGrowSize, bool allowException=true)
 
 CXMemFile (const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory, bool allowException=true)
 
virtual fileuint GetPosition () const
 
virtual fileuint Seek (longint offset, CXFile::SeekPosition nFrom)
 
virtual bool SetLength (fileuint dwNewLen)
 
virtual unsigned int Read (void *buffer, unsigned int maxByteToRead)
 
virtual void Write (const void *buffer, unsigned int byteToWrite)
 
virtual void Abort ()
 
virtual void Flush ()
 
virtual void Close ()
 
virtual fileuint GetLength () const
 
void Attach (const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory)
 
const unsigned charGetBuffer () const
 
unsigned charDetach ()
 
- Public Member Functions inherited from CXFile
 CXFile (bool allowException=true)
 
 CXFile (xFileHandle hFile, bool allowException=true)
 
 CXFile (LPCTSTR lpszFileName, unsigned int openFlags)
 
 CXFile (CFile *pfile, bool allowException=true)
 allowException = false then no exception is send by the class which return false instead
 
virtual CXString GetFileName () const
 
virtual CXString GetFilePath () const
 
virtual void SetFilePath (LPCTSTR lpszNewName)
 
virtual bool Open (LPCTSTR lpszFileName, unsigned int openMode, CXFileException *pError=NULL)
 Open does not send any exception but can fill CXFileException with the appropriate cause of the failing.
 
fileuint SeekToEnd ()
 
void SeekToBegin ()
 

Static Public Member Functions

static unsigned charAlloc (SIZET nBytes)
 
static void Free (unsigned char *lpMem)
 

Additional Inherited Members

- Public Types inherited from CXFile
enum  OpenFlags {
  modeRead = 0x00000 , modeWrite = 0x00001 , modeReadWrite = 0x00002 , readFlags = modeRead|modeWrite|modeReadWrite ,
  shareExclusive = 0x00010 , shareDenyWrite = 0x00020 , shareDenyRead = 0x00030 , shareDenyNone = 0x00040 ,
  shareFlags = shareExclusive| shareDenyWrite|shareDenyRead|shareDenyNone , typeUnicode = 0x00400 , typeUtf8 = 0x00800 , modeCreate = 0x01000 ,
  modeNoTruncate = 0x02000 , typeText = 0x04000 , typeBinary = 0x08000 , noException = 0x100000 ,
  specificFlags = 0x10000000
}
 Specify the open mode for file. More...
 
enum  SeekPosition { begin = 0x00 , current = 0x01 , end = 0x02 }
 
typedef enum CXFile::SeekPosition SeekPosition
 

Member Function Documentation

◆ Abort()

virtual void CXMemFile::Abort ( )
virtual

Reimplemented from CXFile.

◆ Close()

virtual void CXMemFile::Close ( )
virtual

Reimplemented from CXFile.

◆ Flush()

virtual void CXMemFile::Flush ( )
virtual

Reimplemented from CXFile.

◆ GetLength()

virtual fileuint CXMemFile::GetLength ( ) const
virtual

Reimplemented from CXFile.

◆ GetPosition()

virtual fileuint CXMemFile::GetPosition ( ) const
virtual

Reimplemented from CXFile.

◆ Read()

virtual unsigned int CXMemFile::Read ( void buffer,
unsigned int  maxByteToRead 
)
virtual

Reimplemented from CXFile.

◆ Seek()

virtual fileuint CXMemFile::Seek ( longint  offset,
CXFile::SeekPosition  nFrom 
)
virtual

Reimplemented from CXFile.

◆ SetLength()

virtual bool CXMemFile::SetLength ( fileuint  dwNewLen)
virtual

Reimplemented from CXFile.

◆ Write()

virtual void CXMemFile::Write ( const void buffer,
unsigned int  byteToWrite 
)
virtual

Reimplemented from CXFile.


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