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


Classes | |
| class | iostream |
| class | Reference |
Public Member Functions | |
| virtual | ~BLOB () |
| virtual void | clear ()=0 |
| virtual void | open ()=0 |
| virtual void | close ()=0 |
Static Public Member Functions | |
| static std::ostream & | copy (std::ostream &output, std::istream &input, const size_t size, const size_t buffer_size=0x1000) |
Static Public Attributes | |
| static File | tmppath |
| static ibrcommon::Semaphore | _filelimit |
Protected Member Functions | |
| BLOB () | |
| virtual size_t | __get_size ()=0 |
| virtual std::iostream & | __get_stream ()=0 |
Protected Attributes | |
| size_t | _refcount |
| Mutex | _reflock |
| virtual size_t ibrcommon::BLOB::__get_size | ( | ) | [protected, pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::iostream::size().
| virtual std::iostream& ibrcommon::BLOB::__get_stream | ( | ) | [protected, pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::iostream::operator*(), and ibrcommon::BLOB::iostream::operator->().
| virtual void ibrcommon::BLOB::clear | ( | ) | [pure virtual] |
This method deletes the content of the payload. The size will be zero after calling.
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::iostream::clear().
| virtual void ibrcommon::BLOB::close | ( | ) | [pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::iostream::~iostream().
| std::ostream & ibrcommon::BLOB::copy | ( | std::ostream & | output, |
| std::istream & | input, | ||
| const size_t | size, | ||
| const size_t | buffer_size = 0x1000 |
||
| ) | [static] |
copy a stream to another stream
Definition at line 36 of file BLOB.cpp.
References IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.
Referenced by dtn::data::PayloadBlock::deserialize(), dtn::data::ExtensionBlock::deserialize(), dtn::data::PayloadBlock::serialize(), and dtn::data::ExtensionBlock::serialize().
| virtual void ibrcommon::BLOB::open | ( | ) | [pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::iostream::iostream().
This is the global limit for open file handles in BLOBs
Definition at line 47 of file BLOB.h.
Referenced by ibrcommon::TmpFileBLOB::close(), ibrcommon::FileBLOB::close(), ibrcommon::TmpFileBLOB::open(), and ibrcommon::FileBLOB::open().
size_t ibrcommon::BLOB::_refcount [protected] |
Definition at line 146 of file BLOB.h.
Referenced by ibrcommon::BLOB::Reference::Reference().
Mutex ibrcommon::BLOB::_reflock [protected] |
Definition at line 147 of file BLOB.h.
Referenced by ibrcommon::BLOB::Reference::Reference().
File ibrcommon::BLOB::tmppath [static] |
This path has to be initialized to directory which should contain the temporary file blobs.
Definition at line 42 of file BLOB.h.
Referenced by init(), main(), and setGlobalVars().