#include <BESDefinitionStorageVolatile.h>
Inheritance diagram for BESDefinitionStorageVolatile:
Public Member Functions | |
BESDefinitionStorageVolatile (const string &name) | |
create an instance of BESDefinitionStorageVolatile with the give name. | |
virtual | ~BESDefinitionStorageVolatile () |
virtual BESDefine * | look_for (const string &def_name) |
looks for a definition in this volatile store with the given name | |
virtual bool | add_definition (const string &def_name, BESDefine *d) |
adds a given definition to this volatile storage | |
virtual bool | del_definition (const string &def_name) |
deletes a defintion with the given name from this volatile store | |
virtual bool | del_definitions () |
deletes all defintions from the definition store | |
virtual void | show_definitions (BESInfo &info) |
show the defintions stored in this store | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual const string & | get_name () const |
retrieve the name of this persistent store | |
Protected Attributes | |
string | _my_name |
An implementation of the abstract interface BESDefinitionStorage provides volatile storage for a definition, or view, of a set of data including possibly constraints on each of those containers and possibly aggregation of those containers.
BESDefinitionStorageVolatile::BESDefinitionStorageVolatile | ( | const string & | name | ) | [inline] |
create an instance of BESDefinitionStorageVolatile with the give name.
name | name of this persistence store |
BESDefinitionStorageVolatile::~BESDefinitionStorageVolatile | ( | ) | [virtual] |
bool BESDefinitionStorageVolatile::add_definition | ( | const string & | def_name, | |
BESDefine * | d | |||
) | [virtual] |
adds a given definition to this volatile storage
This method adds a definition to the definition store
def_name | name of the definition to add | |
d | definition to add |
Implements BESDefinitionStorage.
bool BESDefinitionStorageVolatile::del_definition | ( | const string & | def_name | ) | [virtual] |
deletes a defintion with the given name from this volatile store
This method deletes a definition from the definition store with the given name.
def_name | name of the defintion to delete |
Implements BESDefinitionStorage.
bool BESDefinitionStorageVolatile::del_definitions | ( | ) | [virtual] |
deletes all defintions from the definition store
Implements BESDefinitionStorage.
void BESDefinitionStorageVolatile::dump | ( | ostream & | strm | ) | const [virtual] |
dumps information about this object
Displays the pointer value of this instance along with all the definition stored in this instance.
strm | C++ i/o stream to dump the information to |
Implements BESDefinitionStorage.
virtual const string& BESDefinitionStorage::get_name | ( | ) | const [inline, virtual, inherited] |
retrieve the name of this persistent store
BESDefine * BESDefinitionStorageVolatile::look_for | ( | const string & | def_name | ) | [virtual] |
looks for a definition in this volatile store with the given name
def_name | name of the definition to look for |
Implements BESDefinitionStorage.
void BESDefinitionStorageVolatile::show_definitions | ( | BESInfo & | info | ) | [virtual] |
show the defintions stored in this store
Add information to the passed information object about each of the defintions stored within this defintion store. The information added to the passed information objects includes the name of this persistent store on the first line followed by the information for each definition on the following lines, one per line.
info | information object to store the information in |
Implements BESDefinitionStorage.
string BESDefinitionStorage::_my_name [protected, inherited] |