#include <fileio.h>
Collaboration diagram for fileio:
Public Member Functions | |
fileio (const string &FileName, open_mode OpenMode) | |
File constructor. | |
~fileio (void) | |
File destructor. | |
fileio & | operator<< (const string &String) |
Write by the end a string to the file. | |
void | ReadFull (void) const |
Read all the data in a file. | |
void | ReadBlock (streamoff FileOffset, streamsize BlockSize) const |
Read a block in base to pBlockSize. | |
char * | GetCurrentBlock (void) const |
Get current block content pointer. | |
streamsize | GetCurrentBlockSize (void) const |
Get current block size. | |
streamsize | GetSize (void) const |
Return the number of bytes in file. | |
Private Member Functions | |
void | ReadContent (streamoff FileOffset) const |
Read file data and stores it in memory. | |
void | WriteContent (const char *pContent, streamsize ContentSize, streamoff FileOffset) |
Write data to the file at specified position. | |
void | DeleteContent (void) const |
Delete Content of the current block. | |
Private Attributes | |
fstream | m_FStream |
File stream. | |
char * | m_pContent |
Pointer to block content. | |
streamsize | m_BlockSize |
Size of the current block. |
|
File constructor.
|
|
File destructor.
|
Here is the call graph for this function:
|
Write by the end a string to the file.
|
Here is the call graph for this function:
|
Read all the data in a file.
|
Here is the call graph for this function:
|
Read a block in base to pBlockSize.
|
Here is the call graph for this function:
|
Get current block content pointer.
|
|
Get current block size.
|
|
Return the number of bytes in file.
|
|
Read file data and stores it in memory.
|
|
Write data to the file at specified position.
|
|
Delete Content of the current block.
|
|
File stream.
|
|
Pointer to block content.
|
|
Size of the current block.
|
![]() |
![]() |
![]() |