BLOCXX_NAMESPACE::TmpFileImpl Class Reference

#include <TmpFile.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::TmpFileImpl:

BLOCXX_NAMESPACE::IntrusiveCountableBase List of all members.

Public Member Functions

 TmpFileImpl ()
 TmpFileImpl (String const &filename)
 ~TmpFileImpl ()
size_t read (void *bfr, size_t numberOfBytes, long offset=-1L)
size_t write (const void *bfr, size_t numberOfBytes, long offset=-1L)
int seek (long offset, int whence=SEEK_SET)
long tell ()
void rewind ()
int flush ()
void newFile ()
long getSize ()
String releaseFile ()

Private Member Functions

void open ()
int close ()
 TmpFileImpl (const TmpFileImpl &arg)
TmpFileImploperator= (const TmpFileImpl &arg)

Private Attributes

char * m_filename
int m_hdl

Detailed Description

Definition at line 54 of file TmpFile.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::TmpFileImpl::TmpFileImpl  ) 
 

Definition at line 84 of file TmpFile.cpp.

References open().

BLOCXX_NAMESPACE::TmpFileImpl::TmpFileImpl String const &  filename  ) 
 

Definition at line 91 of file TmpFile.cpp.

References BLOCXX_INVALID_FILEHANDLE, BLOCXX_THROW, BLOCXX_NAMESPACE::String::c_str(), BLOCXX_NAMESPACE::System::lastErrorMsg(), BLOCXX_NAMESPACE::String::length(), m_filename, m_hdl, and open().

BLOCXX_NAMESPACE::TmpFileImpl::~TmpFileImpl  ) 
 

Definition at line 115 of file TmpFile.cpp.

References close().

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


Member Function Documentation

int BLOCXX_NAMESPACE::TmpFileImpl::close  )  [private]
 

Definition at line 232 of file TmpFile.cpp.

References BLOCXX_INVALID_FILEHANDLE, BLOCXX_NAMESPACE::closeFile(), and m_hdl.

Referenced by open(), and ~TmpFileImpl().

int BLOCXX_NAMESPACE::TmpFileImpl::flush  )  [inline]
 

Definition at line 73 of file TmpFile.hpp.

long BLOCXX_NAMESPACE::TmpFileImpl::getSize  ) 
 

Definition at line 163 of file TmpFile.cpp.

References m_hdl, seek(), and tell().

void BLOCXX_NAMESPACE::TmpFileImpl::newFile  )  [inline]
 

Definition at line 76 of file TmpFile.hpp.

void BLOCXX_NAMESPACE::TmpFileImpl::open  )  [private]
 

Definition at line 210 of file TmpFile.cpp.

References BLOCXX_THROW_ERRNO_MSG, BLOCXX_NAMESPACE::String::c_str(), close(), BLOCXX_NAMESPACE::String::length(), and m_hdl.

Referenced by TmpFileImpl().

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

size_t BLOCXX_NAMESPACE::TmpFileImpl::read void *  bfr,
size_t  numberOfBytes,
long  offset = -1L
 

Definition at line 251 of file TmpFile.cpp.

References m_hdl, BLOCXX_NAMESPACE::BinarySerialization::read(), and seek().

String BLOCXX_NAMESPACE::TmpFileImpl::releaseFile  ) 
 

Definition at line 304 of file TmpFile.cpp.

References BLOCXX_INVALID_FILEHANDLE, BLOCXX_THROW_ERRNO_MSG, BLOCXX_NAMESPACE::closeFile(), and m_hdl.

void BLOCXX_NAMESPACE::TmpFileImpl::rewind  )  [inline]
 

Definition at line 72 of file TmpFile.hpp.

int BLOCXX_NAMESPACE::TmpFileImpl::seek long  offset,
int  whence = SEEK_SET
[inline]
 

Definition at line 69 of file TmpFile.hpp.

Referenced by getSize(), read(), and write().

long BLOCXX_NAMESPACE::TmpFileImpl::tell  )  [inline]
 

Definition at line 71 of file TmpFile.hpp.

Referenced by getSize().

size_t BLOCXX_NAMESPACE::TmpFileImpl::write const void *  bfr,
size_t  numberOfBytes,
long  offset = -1L
 

Definition at line 275 of file TmpFile.cpp.

References m_hdl, and seek().


Member Data Documentation

char* BLOCXX_NAMESPACE::TmpFileImpl::m_filename [private]
 

Definition at line 84 of file TmpFile.hpp.

Referenced by TmpFileImpl().

int BLOCXX_NAMESPACE::TmpFileImpl::m_hdl [private]
 

Definition at line 86 of file TmpFile.hpp.

Referenced by close(), getSize(), open(), read(), releaseFile(), TmpFileImpl(), and write().


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