Classes | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions

ibrcommon::BLOB Class Reference

#include <BLOB.h>

Inherits ibrcommon::Mutex.

Inherited by ibrcommon::FileBLOB, ibrcommon::StringBLOB, and ibrcommon::TmpFileBLOB.

Collaboration diagram for ibrcommon::BLOB:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 37 of file BLOB.h.


Constructor & Destructor Documentation

ibrcommon::BLOB::~BLOB (  )  [virtual]

Definition at line 27 of file BLOB.cpp.

ibrcommon::BLOB::BLOB (  )  [protected]

Definition at line 23 of file BLOB.cpp.


Member Function Documentation

virtual std::iostream& ibrcommon::BLOB::__get_stream (  )  [protected, pure virtual]
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]
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().

Here is the call graph for this function:

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]

Member Data Documentation

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().

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().


The documentation for this class was generated from the following files: