BLOCXX_NAMESPACE::TempFileBuffer Class Reference

#include <TempFileStream.hpp>

List of all members.

Public Member Functions

 TempFileBuffer (size_t bufSize)
 TempFileBuffer (String const &filename, size_t bufSize)
 ~TempFileBuffer ()
std::streamsize getSize ()
void rewind ()
void reset ()
String releaseFile ()
bool usingTempFile () const

Protected Member Functions

int underflow ()
std::streamsize xsputn (const char *s, std::streamsize n)
virtual int overflow (int c)
void initBuffers ()
void initGetBuffer ()
void initPutBuffer ()
int buffer_to_device (const char *c, int n)
int buffer_from_device (char *c, int n)

Private Member Functions

int buffer_in ()
int buffer_out ()
 TempFileBuffer (const TempFileBuffer &arg)
TempFileBufferoperator= (const TempFileBuffer &arg)

Private Attributes

size_t m_bufSize
char * m_buffer
TmpFilem_tempFile
std::streamsize m_readPos
std::streamsize m_writePos
bool m_isEOF


Detailed Description

Definition at line 71 of file TempFileStream.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::TempFileBuffer::TempFileBuffer size_t  bufSize  ) 
 

Definition at line 54 of file TempFileStream.cpp.

References initPutBuffer().

BLOCXX_NAMESPACE::TempFileBuffer::TempFileBuffer String const &  filename,
size_t  bufSize
 

Definition at line 66 of file TempFileStream.cpp.

References initGetBuffer(), m_tempFile, m_writePos, BLOCXX_NAMESPACE::TmpFile::rewind(), BLOCXX_NAMESPACE::TmpFile::seek(), and BLOCXX_NAMESPACE::TmpFile::tell().

BLOCXX_NAMESPACE::TempFileBuffer::~TempFileBuffer  ) 
 

Definition at line 100 of file TempFileStream.cpp.

References m_buffer, and m_tempFile.

BLOCXX_NAMESPACE::TempFileBuffer::TempFileBuffer const TempFileBuffer arg  )  [private]
 


Member Function Documentation

int BLOCXX_NAMESPACE::TempFileBuffer::buffer_from_device char *  c,
int  n
[protected]
 

Definition at line 237 of file TempFileStream.cpp.

References m_tempFile, and BLOCXX_NAMESPACE::TmpFile::read().

Referenced by buffer_in().

int BLOCXX_NAMESPACE::TempFileBuffer::buffer_in  )  [private]
 

Definition at line 210 of file TempFileStream.cpp.

References buffer_from_device(), m_buffer, m_bufSize, and m_isEOF.

Referenced by underflow().

int BLOCXX_NAMESPACE::TempFileBuffer::buffer_out  )  [private]
 

Definition at line 107 of file TempFileStream.cpp.

References buffer_to_device(), initPutBuffer(), and m_buffer.

Referenced by overflow(), releaseFile(), rewind(), and underflow().

int BLOCXX_NAMESPACE::TempFileBuffer::buffer_to_device const char *  c,
int  n
[protected]
 

Definition at line 227 of file TempFileStream.cpp.

References m_tempFile, and BLOCXX_NAMESPACE::TmpFile::write().

Referenced by buffer_out().

std::streamsize BLOCXX_NAMESPACE::TempFileBuffer::getSize  ) 
 

Definition at line 250 of file TempFileStream.cpp.

References BLOCXX_NAMESPACE::TmpFile::getSize(), m_tempFile, and m_writePos.

void BLOCXX_NAMESPACE::TempFileBuffer::initBuffers  )  [protected]
 

Definition at line 82 of file TempFileStream.cpp.

References initGetBuffer(), and initPutBuffer().

void BLOCXX_NAMESPACE::TempFileBuffer::initGetBuffer  )  [protected]
 

Definition at line 95 of file TempFileStream.cpp.

References m_buffer.

Referenced by initBuffers(), rewind(), and TempFileBuffer().

void BLOCXX_NAMESPACE::TempFileBuffer::initPutBuffer  )  [protected]
 

Definition at line 89 of file TempFileStream.cpp.

References m_buffer, and m_bufSize.

Referenced by buffer_out(), initBuffers(), overflow(), reset(), and TempFileBuffer().

TempFileBuffer& BLOCXX_NAMESPACE::TempFileBuffer::operator= const TempFileBuffer arg  )  [private]
 

int BLOCXX_NAMESPACE::TempFileBuffer::overflow int  c  )  [protected, virtual]
 

Definition at line 116 of file TempFileStream.cpp.

References buffer_out(), initPutBuffer(), m_readPos, m_tempFile, m_writePos, BLOCXX_NAMESPACE::TmpFile::seek(), and BLOCXX_NAMESPACE::TmpFile::tell().

String BLOCXX_NAMESPACE::TempFileBuffer::releaseFile  ) 
 

Definition at line 310 of file TempFileStream.cpp.

References buffer_out(), m_tempFile, BLOCXX_NAMESPACE::TmpFile::releaseFile(), and reset().

void BLOCXX_NAMESPACE::TempFileBuffer::reset  ) 
 

Definition at line 299 of file TempFileStream.cpp.

References initPutBuffer(), m_isEOF, m_readPos, m_tempFile, and m_writePos.

Referenced by releaseFile().

void BLOCXX_NAMESPACE::TempFileBuffer::rewind  ) 
 

Definition at line 269 of file TempFileStream.cpp.

References buffer_out(), initGetBuffer(), m_buffer, m_isEOF, m_readPos, m_tempFile, m_writePos, and BLOCXX_NAMESPACE::TmpFile::seek().

int BLOCXX_NAMESPACE::TempFileBuffer::underflow  )  [protected]
 

Definition at line 174 of file TempFileStream.cpp.

References buffer_in(), buffer_out(), m_buffer, m_isEOF, m_readPos, m_tempFile, m_writePos, BLOCXX_NAMESPACE::TmpFile::seek(), and BLOCXX_NAMESPACE::TmpFile::tell().

bool BLOCXX_NAMESPACE::TempFileBuffer::usingTempFile  )  const
 

Definition at line 320 of file TempFileStream.cpp.

References m_tempFile.

std::streamsize BLOCXX_NAMESPACE::TempFileBuffer::xsputn const char *  s,
std::streamsize  n
[protected]
 

Definition at line 152 of file TempFileStream.cpp.

References i.


Member Data Documentation

char* BLOCXX_NAMESPACE::TempFileBuffer::m_buffer [private]
 

Definition at line 96 of file TempFileStream.hpp.

Referenced by buffer_in(), buffer_out(), initGetBuffer(), initPutBuffer(), rewind(), underflow(), and ~TempFileBuffer().

size_t BLOCXX_NAMESPACE::TempFileBuffer::m_bufSize [private]
 

Definition at line 95 of file TempFileStream.hpp.

Referenced by buffer_in(), and initPutBuffer().

bool BLOCXX_NAMESPACE::TempFileBuffer::m_isEOF [private]
 

Definition at line 100 of file TempFileStream.hpp.

Referenced by buffer_in(), reset(), rewind(), and underflow().

std::streamsize BLOCXX_NAMESPACE::TempFileBuffer::m_readPos [private]
 

Definition at line 98 of file TempFileStream.hpp.

Referenced by overflow(), reset(), rewind(), and underflow().

TmpFile* BLOCXX_NAMESPACE::TempFileBuffer::m_tempFile [private]
 

Definition at line 97 of file TempFileStream.hpp.

Referenced by buffer_from_device(), buffer_to_device(), getSize(), overflow(), releaseFile(), reset(), rewind(), TempFileBuffer(), underflow(), usingTempFile(), and ~TempFileBuffer().

std::streamsize BLOCXX_NAMESPACE::TempFileBuffer::m_writePos [private]
 

Definition at line 99 of file TempFileStream.hpp.

Referenced by getSize(), overflow(), reset(), rewind(), TempFileBuffer(), and underflow().


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 15:39:11 2006 for blocxx by  doxygen 1.4.6