#include <BLOB.h>
Inherits ibrcommon::Mutex.
Inherited by ibrcommon::FileBLOB, ibrcommon::StringBLOB, and ibrcommon::TmpFileBLOB.

Classes | |
| class | Reference |
Public Member Functions | |
| virtual | ~BLOB () |
| virtual void | clear ()=0 |
| virtual void | open ()=0 |
| virtual void | close ()=0 |
Public Attributes | |
| bool | _locked |
Static Public Attributes | |
| static File | tmppath |
| static ibrcommon::Semaphore | _filelimit |
Protected Member Functions | |
| BLOB () | |
| void | increment () |
| void | decrement () |
| bool | isUnbound () |
| virtual size_t | getSize () |
| virtual std::iostream & | __get_stream ()=0 |
Definition at line 37 of file BLOB.h.
| virtual std::iostream& ibrcommon::BLOB::__get_stream | ( | ) | [protected, pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by getSize(), and ibrcommon::BLOB::Reference::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::Reference::clear().
| virtual void ibrcommon::BLOB::close | ( | ) | [pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::Reference::leave().
| void ibrcommon::BLOB::decrement | ( | ) | [protected] |
Definition at line 106 of file BLOB.cpp.
Referenced by ibrcommon::BLOB::Reference::~Reference().
| size_t ibrcommon::BLOB::getSize | ( | ) | [protected, virtual] |
Definition at line 119 of file BLOB.cpp.
References __get_stream(), and _locked.
Referenced by ibrcommon::BLOB::Reference::getSize().

| void ibrcommon::BLOB::increment | ( | ) | [protected] |
Definition at line 100 of file BLOB.cpp.
Referenced by ibrcommon::BLOB::Reference::Reference().
| bool ibrcommon::BLOB::isUnbound | ( | ) | [protected] |
Definition at line 112 of file BLOB.cpp.
Referenced by ibrcommon::BLOB::Reference::~Reference().
| virtual void ibrcommon::BLOB::open | ( | ) | [pure virtual] |
Implemented in ibrcommon::StringBLOB, ibrcommon::FileBLOB, and ibrcommon::TmpFileBLOB.
Referenced by ibrcommon::BLOB::Reference::enter(), and ibrcommon::BLOB::Reference::trylock().
This is the global limit for open file handles in BLOBs
Definition at line 49 of file BLOB.h.
Referenced by ibrcommon::TmpFileBLOB::close(), ibrcommon::FileBLOB::close(), ibrcommon::TmpFileBLOB::open(), and ibrcommon::FileBLOB::open().
Stores the locking state of this BLOB
Definition at line 54 of file BLOB.h.
Referenced by ibrcommon::BLOB::Reference::clear(), ibrcommon::BLOB::Reference::enter(), getSize(), ibrcommon::BLOB::Reference::leave(), ibrcommon::BLOB::Reference::operator*(), and ibrcommon::BLOB::Reference::trylock().
File ibrcommon::BLOB::tmppath [static] |
This path has to be initialized to directory which should contain the temporary file blobs.
Definition at line 44 of file BLOB.h.
Referenced by init(), main(), and setGlobalVars().
1.7.1