Linderdaum Engine: clFileWriter Class Reference
Updated: Sun Feb 5 2012 22:59:50
clFileWriter Class Reference

#include <Files.h>

List of all members.

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.

Constructor & Destructor Documentation

clFileWriter::clFileWriter ( )
clFileWriter::~clFileWriter ( ) [virtual]

Member Function Documentation

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.


Member Data Documentation

LString clFileWriter::FFileName [private]

Cached write position to avoid ftell() function calls.


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