IBR-DTNSuite 0.6

ibrcommon::TmpFileBLOB Class Reference

#include <BLOB.h>

Inheritance diagram for ibrcommon::TmpFileBLOB:
Collaboration diagram for ibrcommon::TmpFileBLOB:

List of all members.

Public Member Functions

virtual ~TmpFileBLOB ()
virtual void clear ()
virtual void open ()
virtual void close ()

Static Public Member Functions

static BLOB::Reference create ()

Protected Member Functions

std::iostream & __get_stream ()
size_t __get_size ()

Detailed Description

A TmpFileBLOB creates a temporary file on instantiation to hold a large amount of data. It is based on fstream objects and limited by the system architecture (max. 2GB on 32-bit systems).

Definition at line 218 of file BLOB.h.


Constructor & Destructor Documentation

ibrcommon::TmpFileBLOB::~TmpFileBLOB ( ) [virtual]

Definition at line 325 of file BLOB.cpp.

References ibrcommon::File::remove().

Here is the call graph for this function:


Member Function Documentation

size_t ibrcommon::TmpFileBLOB::__get_size ( ) [protected, virtual]

Implements ibrcommon::BLOB.

Definition at line 356 of file BLOB.cpp.

References ibrcommon::File::size().

Here is the call graph for this function:

std::iostream& ibrcommon::TmpFileBLOB::__get_stream ( ) [inline, protected, virtual]

Implements ibrcommon::BLOB.

Definition at line 230 of file BLOB.h.

void ibrcommon::TmpFileBLOB::clear ( ) [virtual]

This method deletes the content of the payload. The size will be zero after calling.

Implements ibrcommon::BLOB.

Definition at line 292 of file BLOB.cpp.

References ibrcommon::File::getPath(), IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.

Here is the call graph for this function:

void ibrcommon::TmpFileBLOB::close ( ) [virtual]

Implements ibrcommon::BLOB.

Definition at line 345 of file BLOB.cpp.

References ibrcommon::BLOB::_filelimit, and ibrcommon::Semaphore::post().

Here is the call graph for this function:

void ibrcommon::TmpFileBLOB::open ( ) [virtual]

Implements ibrcommon::BLOB.

Definition at line 331 of file BLOB.cpp.

References ibrcommon::BLOB::_filelimit, ibrcommon::File::getPath(), IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Semaphore::wait().

Here is the call graph for this function:


The documentation for this class was generated from the following files: