| Linderdaum Engine: clFileWriter Class Reference | ![]() |
#include <Files.h>
Public Member Functions | |
| clFileWriter () | |
| virtual | ~clFileWriter () |
| scriptmethod bool | Open (const LString &FileName) |
| (Re)Open file | |
| scriptmethod bool | Close () |
| Close file. | |
| virtual LString | GetFileName () const |
| Get real file name for this stream (TODO : move to FileStream, some streams must not have any file name) | |
| virtual void | Seek (const Luint64 Position) |
| Change absolute file position to Position. | |
| virtual Luint64 | GetFilePos () const |
| Get current write position. | |
| virtual void | BlockWrite (const void *Buf, const Luint64 Size) |
| Write Size bytes from Buf. | |
Private Attributes | |
| LString | FFileName |
| int | FMapFile |
| Luint64 | FPosition |
| Cached write position to avoid ftell() function calls. | |
| clFileWriter::clFileWriter | ( | ) |
| clFileWriter::~clFileWriter | ( | ) | [virtual] |
| void clFileWriter::BlockWrite | ( | const void * | Buf, |
| const Luint64 | Size | ||
| ) | [virtual] |
Write Size bytes from Buf.
Implements iOStream.
| bool clFileWriter::Close | ( | ) |
Close file.
Close file (TODO : get error code)
| LString clFileWriter::GetFileName | ( | ) | const [virtual] |
Get real file name for this stream (TODO : move to FileStream, some streams must not have any file name)
Implements iOStream.
| virtual Luint64 clFileWriter::GetFilePos | ( | ) | const [inline, virtual] |
Get current write position.
Implements iOStream.
| bool clFileWriter::Open | ( | const LString & | FileName | ) |
(Re)Open file
(Re)Open file (FIXME: return true or fale, avoid FATAL_MSG)
| void clFileWriter::Seek | ( | const Luint64 | Position | ) | [virtual] |
Change absolute file position to Position.
Implements iOStream.
LString clFileWriter::FFileName [private] |
int clFileWriter::FMapFile [private] |
Luint64 clFileWriter::FPosition [private] |
Cached write position to avoid ftell() function calls.