bes  Updated for version 3.20.5
BESDefinitionStorageVolatile Class Reference

provides volatile storage for a specific definition/view of different containers including contraints and aggregation. More...

#include <BESDefinitionStorageVolatile.h>

Collaboration diagram for BESDefinitionStorageVolatile:
Collaboration graph

Public Member Functions

virtual bool add_definition (const string &def_name, BESDefine *d)
 adds a given definition to this volatile storage More...
 
 BESDefinitionStorageVolatile (const string &name)
 create an instance of BESDefinitionStorageVolatile with the give name. More...
 
virtual bool del_definition (const string &def_name)
 deletes a defintion with the given name from this volatile store More...
 
virtual bool del_definitions ()
 deletes all defintions from the definition store More...
 
virtual void dump (ostream &strm) const
 dumps information about this object More...
 
virtual const string & get_name () const
 retrieve the name of this persistent store More...
 
virtual BESDefinelook_for (const string &def_name)
 looks for a definition in this volatile store with the given name More...
 
virtual void show_definitions (BESInfo &info)
 show the definitions stored in this store More...
 

Protected Attributes

string _my_name
 

Detailed Description

provides volatile storage for a specific definition/view of different containers including contraints and aggregation.

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.

See also
BESDefine
BESDefinitionStorageList

Definition at line 58 of file BESDefinitionStorageVolatile.h.

Constructor & Destructor Documentation

◆ BESDefinitionStorageVolatile()

BESDefinitionStorageVolatile::BESDefinitionStorageVolatile ( const string &  name)
inline

create an instance of BESDefinitionStorageVolatile with the give name.

Parameters
namename of this persistence store

Definition at line 69 of file BESDefinitionStorageVolatile.h.

Member Function Documentation

◆ add_definition()

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

Parameters
def_namename of the definition to add
ddefinition to add

Implements BESDefinitionStorage.

Definition at line 66 of file BESDefinitionStorageVolatile.cc.

◆ del_definition()

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.

Parameters
def_namename of the defintion to delete
Returns
true if successfully deleted and false otherwise

Implements BESDefinitionStorage.

Definition at line 83 of file BESDefinitionStorageVolatile.cc.

◆ del_definitions()

bool BESDefinitionStorageVolatile::del_definitions ( )
virtual

deletes all defintions from the definition store

Returns
true if successfully deleted and false otherwise

Implements BESDefinitionStorage.

Definition at line 101 of file BESDefinitionStorageVolatile.cc.

◆ dump()

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.

Parameters
strmC++ i/o stream to dump the information to

Implements BESDefinitionStorage.

Definition at line 183 of file BESDefinitionStorageVolatile.cc.

◆ get_name()

virtual const string& BESDefinitionStorage::get_name ( ) const
inlinevirtualinherited

retrieve the name of this persistent store

Returns
name of this persistent store.

Definition at line 84 of file BESDefinitionStorage.h.

◆ look_for()

BESDefine * BESDefinitionStorageVolatile::look_for ( const string &  def_name)
virtual

looks for a definition in this volatile store with the given name

Parameters
def_namename of the definition to look for
Returns
definition with the given name, NULL if not found

Implements BESDefinitionStorage.

Definition at line 49 of file BESDefinitionStorageVolatile.cc.

◆ show_definitions()

void BESDefinitionStorageVolatile::show_definitions ( BESInfo info)
virtual

show the definitions stored in this store

Add information to the passed information object about each of the definitions stored within this definition 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.

Parameters
infoinformation object to store the information in

Implements BESDefinitionStorage.

Definition at line 124 of file BESDefinitionStorageVolatile.cc.


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