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

WriteBuffer Class Reference

#include <WriteBuffer.hpp>

List of all members.

Public Methods

 WriteBuffer (File &file, int bufferSize)
 ~WriteBuffer ()
void write (const char *data, int length)
void flush ()
File::offset_type tellp () const

Private Attributes

char * _buffer
int _bufferSize
File_file
int _position
File::offset_type _filePos


Detailed Description

Provide a write buffer for a File object, enabling explicit buffer management..


Constructor & Destructor Documentation

WriteBuffer::WriteBuffer File   file,
int    bufferSize
 

WriteBuffer::~WriteBuffer  
 


Member Function Documentation

void WriteBuffer::flush  
 

flushes the internal buffer out to the ofstream. does not explicitly flush the ofstream.

File::offset_type WriteBuffer::tellp   const
 

returns the current write pointer position

void WriteBuffer::write const char *    data,
int    length
 

standard write semantics; will perform an unbuffered write if <length> is long enough to warrant it


Member Data Documentation

char* WriteBuffer::_buffer [private]
 

int WriteBuffer::_bufferSize [private]
 

File& WriteBuffer::_file [private]
 

File::offset_type WriteBuffer::_filePos [private]
 

int WriteBuffer::_position [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:09 2004 for LEMUR by doxygen1.2.16