|
IBR-DTNSuite 0.6
|
#include <BLOB.h>


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).
| 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(), IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.

| 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::data::CompressedPayloadBlock::compress(), dtn::utils::Utils::encapsule(), dtn::data::CompressedPayloadBlock::extract(), 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, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Semaphore::wait().
