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


Public Member Functions | |
| FileBLOB (const ibrcommon::File &f) | |
| virtual | ~FileBLOB () |
| virtual void | clear () |
| virtual void | open () |
| virtual void | close () |
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.
| ibrcommon::FileBLOB::FileBLOB | ( | const ibrcommon::File & | f | ) |
Definition at line 253 of file BLOB.cpp.
References ibrcommon::File::exists().

| ibrcommon::FileBLOB::~FileBLOB | ( | ) | [virtual] |
| size_t ibrcommon::FileBLOB::__get_size | ( | ) | [protected, virtual] |
Implements ibrcommon::BLOB.
Definition at line 287 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 279 of file BLOB.cpp.
References ibrcommon::BLOB::_filelimit, and ibrcommon::Semaphore::post().

| void ibrcommon::FileBLOB::open | ( | ) | [virtual] |
Implements ibrcommon::BLOB.
Definition at line 266 of file BLOB.cpp.
References ibrcommon::BLOB::_filelimit, ibrcommon::File::getPath(), and ibrcommon::Semaphore::wait().
