BESSetContextCommand Class Reference

#include <BESSetContextCommand.h>

Inheritance diagram for BESSetContextCommand:

Inheritance graph
[legend]
Collaboration diagram for BESSetContextCommand:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BESSetContextCommand (const string &cmd)
virtual ~BESSetContextCommand ()
virtual BESResponseHandlerparse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi)
 parses the request to set context within the BES. A context consists of a name and a value.
virtual void dump (ostream &strm) const
 dumps information about this object
virtual string parse_options (BESTokenizer &tokens, BESDataHandlerInterface &dhi)

Static Public Member Functions

static void add_command (const string &cmd_str, BESCommand *cmd)
static bool del_command (const string &cmd_str)
static BESCommandfind_command (const string &cmd_str)

Static Public Attributes

static BESCommandTermCommand = new BESTermCommand( "term" )

Protected Attributes

string _cmd


Constructor & Destructor Documentation

BESSetContextCommand::BESSetContextCommand ( const string &  cmd  )  [inline]

virtual BESSetContextCommand::~BESSetContextCommand (  )  [inline, virtual]


Member Function Documentation

void BESCommand::add_command ( const string &  cmd_str,
BESCommand cmd 
) [static, inherited]

bool BESCommand::del_command ( const string &  cmd_str  )  [static, inherited]

void BESSetContextCommand::dump ( ostream &  strm  )  const [virtual]

dumps information about this object

Displays the pointer value of this instance

Parameters:
strm C++ i/o stream to dump the information to

Reimplemented from BESCommand.

References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Here is the call graph for this function:

BESCommand * BESCommand::find_command ( const string &  cmd_str  )  [static, inherited]

string BESCommand::parse_options ( BESTokenizer tokens,
BESDataHandlerInterface dhi 
) [virtual, inherited]

BESResponseHandler * BESSetContextCommand::parse_request ( BESTokenizer tokenizer,
BESDataHandlerInterface dhi 
) [virtual]

parses the request to set context within the BES. A context consists of a name and a value.

The syntax for a request handled by this response handler is:

set context <context_name> to <context_value>;

The request must end with a semicolon and must contain the context name and the context value.

Parameters:
tokenizer holds on to the list of tokens to be parsed
dhi structure that holds request and response information
Exceptions:
BESSyntaxUserError if there is a problem parsing the request
See also:
BESTokenizer

_BESDataHandlerInterface

Implements BESCommand.

References _BESDataHandlerInterface::action, CONTEXT_NAME, CONTEXT_VALUE, _BESDataHandlerInterface::data, BESResponseHandlerList::find_handler(), BESTokenizer::get_next_token(), BESTokenizer::parse_error(), SET_CONTEXT, and BESResponseHandlerList::TheList().

Here is the call graph for this function:


Member Data Documentation

string BESCommand::_cmd [protected, inherited]

BESCommand * BESCommand::TermCommand = new BESTermCommand( "term" ) [static, inherited]


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

Generated on Wed Mar 4 04:34:27 2009 for OPeNDAP Back End Server (BES) by  doxygen 1.5.8