IBR-DTNSuite  0.8
ibrcommon::FileBLOB Class Reference

#include <BLOB.h>

Inheritance diagram for ibrcommon::FileBLOB:
Collaboration diagram for ibrcommon::FileBLOB:

List of all members.

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

Detailed Description

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.

Definition at line 182 of file BLOB.h.


Constructor & Destructor Documentation

Definition at line 253 of file BLOB.cpp.

References ibrcommon::File::exists().

Here is the call graph for this function:

Definition at line 262 of file BLOB.cpp.


Member Function Documentation

size_t ibrcommon::FileBLOB::__get_size ( ) [protected, virtual]

Implements ibrcommon::BLOB.

Definition at line 287 of file BLOB.cpp.

References ibrcommon::File::size().

Here is the call graph for this function:

std::iostream& ibrcommon::FileBLOB::__get_stream ( ) [inline, protected, virtual]

Implements ibrcommon::BLOB.

Definition at line 194 of file BLOB.h.

void ibrcommon::FileBLOB::clear ( ) [virtual]

This method deletes the content of the payload. The size will be zero after calling.

Implements ibrcommon::BLOB.

Definition at line 248 of file BLOB.cpp.

void ibrcommon::FileBLOB::close ( ) [virtual]

Implements ibrcommon::BLOB.

Definition at line 279 of file BLOB.cpp.

References ibrcommon::BLOB::_filelimit, and ibrcommon::Semaphore::post().

Here is the call graph for this function:

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

Here is the call graph for this function:


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