#include <BESContextManager.h>
Inheritance diagram for BESContextManager:
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 | |
virtual string | get_context (const string &name, bool &found) |
retrieve the value of the specified context from the BES | |
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 | |
virtual | ~BESContextManager (void) |
Static Public Member Functions | |
static BESContextManager * | TheManager () |
Protected Member Functions | |
BESContextManager (void) |
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.
typedef map< string, string >::const_iterator BESContextManager::Context_citer |
Definition at line 63 of file BESContextManager.h.
typedef map< string, string >::iterator BESContextManager::Context_iter |
Definition at line 64 of file BESContextManager.h.
BESContextManager::BESContextManager | ( | void | ) | [inline, protected] |
Definition at line 59 of file BESContextManager.h.
virtual BESContextManager::~BESContextManager | ( | void | ) | [inline, virtual] |
Definition at line 61 of file BESContextManager.h.
void BESContextManager::dump | ( | ostream & | strm | ) | const [virtual] |
dumps information about this object
Displays the pointer value of this instance along with information about each of the context values
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 102 of file BESContextManager.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Here is the call graph for this function:
string BESContextManager::get_context | ( | const string & | name, | |
bool & | found | |||
) | [virtual] |
retrieve the value of the specified context from the BES
Finds the specified context and returns its value
name | name of the context to retrieve | |
found | the value of this parameter is set to indicate whether the context was found or not. An empty string could be a valid value |
Definition at line 59 of file BESContextManager.cc.
Referenced by BESDapError::handleException(), BESDapResponse::is_dap2(), BESDapResponse::read_contexts(), BESDapTransmit::send_basic_das(), BESDapTransmit::send_basic_data(), BESDapTransmit::send_basic_dataddx(), BESDapTransmit::send_basic_dds(), BESDapTransmit::send_basic_ddx(), BESBasicTransmitter::send_html(), and BESBasicTransmitter::send_text().
void BESContextManager::list_context | ( | BESInfo & | info | ) | [virtual] |
Adds all context and their values to the given informational object.
Definition at line 77 of file BESContextManager.cc.
References BESInfo::add_tag().
Referenced by BESShowContextResponseHandler::execute().
Here is the call graph for this function:
void BESContextManager::set_context | ( | const string & | name, | |
const string & | value | |||
) | [virtual] |
set context in the BES
name | name of the context | |
value | value the context is to take |
Definition at line 44 of file BESContextManager.cc.
Referenced by BESSetContextResponseHandler::execute().
BESContextManager * BESContextManager::TheManager | ( | ) | [static] |
Definition at line 128 of file BESContextManager.cc.
Referenced by BESShowContextResponseHandler::execute(), BESSetContextResponseHandler::execute(), BESDapError::handleException(), BESDapResponse::is_dap2(), BESDapResponse::read_contexts(), BESDapTransmit::send_basic_das(), BESDapTransmit::send_basic_data(), BESDapTransmit::send_basic_dataddx(), BESDapTransmit::send_basic_dds(), BESDapTransmit::send_basic_ddx(), BESBasicTransmitter::send_html(), and BESBasicTransmitter::send_text().