OW_NAMESPACE::TmpFileImpl Class Reference

#include <OW_TmpFile.hpp>

Inheritance diagram for OW_NAMESPACE::TmpFileImpl:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::TmpFileImpl:

Collaboration graph
[legend]
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 52 of file OW_TmpFile.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::TmpFileImpl::TmpFileImpl  ) 
 

Definition at line 82 of file OW_TmpFile.cpp.

References open().

OW_NAMESPACE::TmpFileImpl::TmpFileImpl String const &  filename  ) 
 

Definition at line 89 of file OW_TmpFile.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::System::lastErrorMsg(), OW_NAMESPACE::String::length(), m_filename, m_hdl, open(), OW_INVALID_FILEHANDLE, and OW_THROW.

OW_NAMESPACE::TmpFileImpl::~TmpFileImpl  ) 
 

Definition at line 113 of file OW_TmpFile.cpp.

References close().

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


Member Function Documentation

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

Definition at line 230 of file OW_TmpFile.cpp.

References OW_NAMESPACE::closeFile(), m_hdl, and OW_INVALID_FILEHANDLE.

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

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

Definition at line 71 of file OW_TmpFile.hpp.

long OW_NAMESPACE::TmpFileImpl::getSize  ) 
 

Definition at line 161 of file OW_TmpFile.cpp.

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

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

Definition at line 74 of file OW_TmpFile.hpp.

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

Definition at line 208 of file OW_TmpFile.cpp.

References OW_NAMESPACE::String::c_str(), close(), OW_NAMESPACE::String::length(), m_hdl, and OW_THROW_ERRNO_MSG.

Referenced by TmpFileImpl().

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

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

Definition at line 249 of file OW_TmpFile.cpp.

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

String OW_NAMESPACE::TmpFileImpl::releaseFile  ) 
 

Definition at line 302 of file OW_TmpFile.cpp.

References OW_NAMESPACE::closeFile(), m_hdl, OW_INVALID_FILEHANDLE, and OW_THROW_ERRNO_MSG.

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

Definition at line 70 of file OW_TmpFile.hpp.

References m_hdl.

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

Definition at line 67 of file OW_TmpFile.hpp.

References m_hdl.

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

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

Definition at line 69 of file OW_TmpFile.hpp.

References m_hdl.

Referenced by getSize().

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

Definition at line 273 of file OW_TmpFile.cpp.

References m_hdl, and seek().


Member Data Documentation

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

Definition at line 82 of file OW_TmpFile.hpp.

Referenced by TmpFileImpl().

int OW_NAMESPACE::TmpFileImpl::m_hdl [private]
 

Definition at line 84 of file OW_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 Thu Feb 9 09:14:47 2006 for openwbem by  doxygen 1.4.6