bes  Updated for version 3.17.0
BESContextManager Class Reference

maintains the list of registered request handlers for this server More...

#include <BESContextManager.h>

Inheritance diagram for BESContextManager:
Inheritance graph

Public Types

typedef map< string, string >::const_iterator Context_citer
 
typedef map< string, string >::iterator Context_iter
 

Public Member Functions

virtual void dump (ostream &strm) const
 dumps information about this object More...
 
virtual string get_context (const string &name, bool &found)
 retrieve the value of the specified context from the BES More...
 
virtual void list_context (BESInfo &info)
 Adds all context and their values to the given informational object.
 
virtual void set_context (const string &name, const string &value)
 set context in the BES More...
 
virtual void unset_context (const string &name)
 set context in the BES More...
 

Static Public Member Functions

static BESContextManagerTheManager ()
 

Detailed Description

For a type of data to be handled by the BES the data type must registered a request handler with the server. This request handler knows how to fill in specific response objects, such as DAS, DDS, help, version, etc... The request handlers are registered with this request handler list.

Definition at line 53 of file BESContextManager.h.

Member Function Documentation

void BESContextManager::dump ( ostream &  strm) const
virtual

Displays the pointer value of this instance along with information about each of the context values

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

Implements BESObj.

Definition at line 112 of file BESContextManager.cc.

string BESContextManager::get_context ( const string &  name,
bool &  found 
)
virtual

Finds the specified context and returns its value

Parameters
namename of the context to retrieve
foundthe value of this parameter is set to indicate whether the context was found or not. An empty string could be a valid value
Returns
the value of the requested context, empty string if not found

Definition at line 70 of file BESContextManager.cc.

void BESContextManager::set_context ( const string &  name,
const string &  value 
)
virtual
Parameters
namename of the context
valuevalue the context is to take

Definition at line 44 of file BESContextManager.cc.

void BESContextManager::unset_context ( const string &  name)
virtual
Parameters
namename of the context
valuevalue the context is to take

Definition at line 55 of file BESContextManager.cc.


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