#include <BLOB.h>
Inherits ibrcommon::BLOB.

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 () |
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.
| ibrcommon::TmpFileBLOB::~TmpFileBLOB | ( | ) | [virtual] |
Definition at line 325 of file BLOB.cpp.
References ibrcommon::File::remove().

| size_t ibrcommon::TmpFileBLOB::__get_size | ( | ) | [protected, virtual] |
Implements ibrcommon::BLOB.
Definition at line 356 of file BLOB.cpp.
References ibrcommon::File::size().

| std::iostream& ibrcommon::TmpFileBLOB::__get_stream | ( | ) | [inline, protected, virtual] |
Implements ibrcommon::BLOB.
| 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(), and IBRCOMMON_LOGGER.

| void ibrcommon::TmpFileBLOB::close | ( | ) | [virtual] |
Implements ibrcommon::BLOB.
Definition at line 345 of file BLOB.cpp.
References ibrcommon::BLOB::_filelimit, and ibrcommon::Semaphore::post().

| BLOB::Reference ibrcommon::TmpFileBLOB::create | ( | ) | [static] |
Definition at line 283 of file BLOB.cpp.
Referenced by dtn::net::HTTPConvergenceLayer::componentRun(), dtn::data::BundleMerger::getContainer(), main(), and dtn::net::HTTPConvergenceLayer::queue().
| 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, and ibrcommon::Semaphore::wait().

1.7.1