Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::file::WriteBuffer Class Reference

#include <WriteBuffer.hpp>

List of all members.

Public Member Functions

 WriteBuffer (File &file, size_t bufferSize, bool exclusiveAccess=true)
 ~WriteBuffer ()
char * write (size_t length)
void unwrite (size_t length)
void write (const char *data, size_t length)
void flush ()
File::offset_type tellp ()

Private Attributes

char * _buffer
size_t _bufferSize
size_t _position
File::offset_type _filePos
bool _exclusiveAccess

Constructor & Destructor Documentation

lemur::file::WriteBuffer::WriteBuffer File file,
size_t  bufferSize,
bool  exclusiveAccess = true

lemur::file::WriteBuffer::~WriteBuffer  ) 

Member Function Documentation

void lemur::file::WriteBuffer::flush  ) 

lemur::file::File::offset_type lemur::file::WriteBuffer::tellp  ) 

void lemur::file::WriteBuffer::unwrite size_t  length  ) 

void lemur::file::WriteBuffer::write const char *  data,
size_t  length

char * lemur::file::WriteBuffer::write size_t  length  ) 

Member Data Documentation

char* lemur::file::WriteBuffer::_buffer [private]

size_t lemur::file::WriteBuffer::_bufferSize [private]

bool lemur::file::WriteBuffer::_exclusiveAccess [private]

File& lemur::file::WriteBuffer::_file [private]

File::offset_type lemur::file::WriteBuffer::_filePos [private]

size_t lemur::file::WriteBuffer::_position [private]

The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4