#include <TmpFile.hpp>

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) | |
| TmpFileImpl & | operator= (const TmpFileImpl &arg) |
Private Attributes | |
| char * | m_filename |
| int | m_hdl |
Definition at line 54 of file TmpFile.hpp.
| BLOCXX_NAMESPACE::TmpFileImpl::TmpFileImpl | ( | ) |
| 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 | ( | ) |
| BLOCXX_NAMESPACE::TmpFileImpl::TmpFileImpl | ( | 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::FileSystem::read(), and seek().
| size_t BLOCXX_NAMESPACE::TmpFileImpl::write | ( | const void * | bfr, | |
| size_t | numberOfBytes, | |||
| long | offset = -1L | |||
| ) |
| int BLOCXX_NAMESPACE::TmpFileImpl::seek | ( | long | offset, | |
| int | whence = SEEK_SET | |||
| ) | [inline] |
| long BLOCXX_NAMESPACE::TmpFileImpl::tell | ( | ) | [inline] |
| void BLOCXX_NAMESPACE::TmpFileImpl::rewind | ( | ) | [inline] |
Definition at line 72 of file TmpFile.hpp.
| int BLOCXX_NAMESPACE::TmpFileImpl::flush | ( | ) | [inline] |
Definition at line 73 of file TmpFile.hpp.
| void BLOCXX_NAMESPACE::TmpFileImpl::newFile | ( | ) | [inline] |
Definition at line 76 of file TmpFile.hpp.
| long BLOCXX_NAMESPACE::TmpFileImpl::getSize | ( | ) |
| 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::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().
| 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().
| TmpFileImpl& BLOCXX_NAMESPACE::TmpFileImpl::operator= | ( | const TmpFileImpl & | arg | ) | [private] |
char* BLOCXX_NAMESPACE::TmpFileImpl::m_filename [private] |
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().
1.5.3