|
||||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
File
| Field Summary | |
protected FILE* |
m_Handle
Handle |
protected CzzString |
m_Mode
Mode |
protected bool |
m_Open
Open? |
protected CzzString |
m_Path
Path |
protected size_t |
m_Size
Size |
protected time_t |
m_Time
Time |
| Constructor Summary | |
CzzFile( const char* path )
Create a wrapper object for a file |
|
~CzzFile()
|
|
| Method Summary | |
void |
Close( void )
Close file |
void |
CopyTo( const char* path )
Copy file |
void |
Delete( void )
Delete file |
bool |
Exist( void )
Does the file exist? |
FILE* |
GetHandle( void )
File handle |
CzzString& |
GetPath( void )
Path |
void |
Open( const char* mode )
Open file |
size_t |
Read( void* p, size_t size )
Read a block from the file |
void |
Rename( const char* newname )
Rename file |
void |
SetPath( const char* path )
Change path |
size_t |
Size( void )
File size |
time_t |
Time( void )
File modify time |
size_t |
Write( void* p, size_t size )
Write a block to the file |
| Field Detail |
protected FILE* m_Handle;
protected CzzString m_Mode;
protected bool m_Open;
protected CzzString m_Path;
protected size_t m_Size;
protected time_t m_Time;
| Constructor Detail |
public CzzFile( const char* path );
path - Full path to filepublic ~CzzFile();
| Method Detail |
public void Close( void );
public void CopyTo( const char* path );
path - Path to copy file topublic void Delete( void );
public bool Exist( void );
public FILE* GetHandle( void );
public CzzString& GetPath( void );
public void Open( const char* mode );
mode - mode (a,w,r + b) see fopen()public size_t Read( void* p, size_t size );
p - Pointer to a memoryblock to receive data read
size - Size of ppublic void Rename( const char* newname );
newname - New file name including pathpublic void SetPath( const char* path );
public size_t Size( void );
public time_t Time( void );
public size_t Write( void* p, size_t size );
p - Pointer to a memoryblock to be written
size - Size of p
|
||||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||