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


Public Member Functions | |
| virtual | ~FileBLOB () |
| virtual void | clear () |
| virtual void | open () |
| virtual void | close () |
Static Public Member Functions | |
| static BLOB::Reference | create (const File &f) |
Protected Member Functions | |
| std::iostream & | __get_stream () |
| size_t | __get_size () |
A FileBLOB is a read only BLOB object. It is based on a fstream object, but denies write access. This could be used to easy access static files.
| size_t ibrcommon::FileBLOB::__get_size | ( | ) | [protected, virtual] |
Implements ibrcommon::BLOB.
Definition at line 278 of file BLOB.cpp.
References ibrcommon::File::size().

| std::iostream& ibrcommon::FileBLOB::__get_stream | ( | ) | [inline, protected, virtual] |
Implements ibrcommon::BLOB.
| void ibrcommon::FileBLOB::clear | ( | ) | [virtual] |
This method deletes the content of the payload. The size will be zero after calling.
Implements ibrcommon::BLOB.
| void ibrcommon::FileBLOB::close | ( | ) | [virtual] |
Implements ibrcommon::BLOB.
Definition at line 270 of file BLOB.cpp.
References ibrcommon::BLOB::_filelimit, and ibrcommon::Semaphore::post().

| BLOB::Reference ibrcommon::FileBLOB::create | ( | const File & | f | ) | [static] |
Definition at line 234 of file BLOB.cpp.
Referenced by dtn::api::FileBundle::FileBundle().
| void ibrcommon::FileBLOB::open | ( | ) | [virtual] |
Implements ibrcommon::BLOB.
Definition at line 257 of file BLOB.cpp.
References ibrcommon::BLOB::_filelimit, ibrcommon::File::getPath(), and ibrcommon::Semaphore::wait().
