#include <TFile.h>
Public Member Functions | |
TFile (TFileSystem *a_pFS) | |
TFile (const TFile &a_rOther) | |
virtual TSIZE | Read (void *a_pDst, TSIZE a_uiSize)=0 |
Reads specified number of bytes from the file into the buffer. | |
virtual TSIZE | Write (const void *a_pSrc, TSIZE a_uiSize)=0 |
Writes specified number of bytes to the file from the buffer. | |
virtual TBOOL | Seek (TINT a_iOffset, TSEEK a_eOrigin=TSEEK_CUR)=0 |
Shifts current file cursor based on the specified offset and origin. | |
virtual TSIZE | Tell ()=0 |
virtual void | FlushBuffers () |
Flushes write buffers. | |
virtual TSIZE | GetSize ()=0 |
virtual TUINT64 | GetDate () |
virtual TCHAR | GetCChar ()=0 |
Reads one character of type TCHAR from the file. | |
virtual TWCHAR | GetWChar ()=0 |
Reads one character of type wchar from the file. | |
virtual TINT | PutCChar (TCHAR a_cCharacter)=0 |
Writes one character of type TCHAR to the file. | |
virtual TINT | PutWChar (TWCHAR a_wcCharacter)=0 |
Writes one character of type wchar to the file. | |
virtual TINT | CPrintf (const TCHAR *a_szFormat,...)=0 |
Analogue of printf but writes result to the file. | |
virtual TINT | WPrintf (const TWCHAR *a_wszFormat,...)=0 |
Analogue of wprintf but writes result to the file. | |
virtual | ~TFile () |
TFileSystem * | GetFileSystem () const |
void | Destroy () |
Static Public Member Functions | |
static TString8 | ConcatPath (const TString8 &a_rcPath1, const TString8 &a_rcPath2) |
static TString8 | SimplifyPath (const TString8 &a_rcPath) |
static TFile * | Create (const TString8 &a_rcFilename, TFILEMODE a_eMode=TFILEMODE_READ) |
TFile::TFile | ( | TFileSystem * | a_pFS | ) |
TFile::TFile | ( | const TFile & | a_rOther | ) |
Definition at line 48 of file TFile.cpp.
Analogue of printf but writes result to the file.
Implemented in TNativeFile.
|
static |
Definition at line 29 of file TFile.cpp.
void TFile::Destroy | ( | ) |
|
inlinevirtual |
|
pure virtual |
Reads one character of type TCHAR from the file.
Implemented in TNativeFile.
|
inlinevirtual |
Reimplemented in TNativeFile.
Definition at line 176 of file TFile.h.
|
inline |
|
pure virtual |
Implemented in TNativeFile.
|
pure virtual |
Reads one character of type wchar from the file.
Implemented in TNativeFile.
Writes one character of type TCHAR to the file.
Implemented in TNativeFile.
Writes one character of type wchar to the file.
Implemented in TNativeFile.
Reads specified number of bytes from the file into the buffer.
a_pDst | destination buffer |
a_uiSize | number of bytes to read |
Implemented in TNativeFile.
Shifts current file cursor based on the specified offset and origin.
a_iOffset | number of characters to shift the position |
a_eOrigin | position to which a_iOffset is added |
Implemented in TNativeFile.
Definition at line 106 of file TFile.cpp.
|
pure virtual |
Implemented in TNativeFile.
Analogue of wprintf but writes result to the file.
Implemented in TNativeFile.
Writes specified number of bytes to the file from the buffer.
a_pSrc | sourde buffer |
a_uiSize | number of bytes to write |
Implemented in TNativeFile.