BESSetContainerCommand Class Reference

#include <BESSetContainerCommand.h>

Inheritance diagram for BESSetContainerCommand:

Inheritance graph
[legend]
Collaboration diagram for BESSetContainerCommand:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BESSetContainerCommand (const string &cmd)
virtual ~BESSetContainerCommand ()
virtual BESResponseHandlerparse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi)
 parses the request to create a new container or replace an already existing container given a symbolic name, a real name, and a data type.
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

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

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


Member Function Documentation

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

parses the request to create a new container or replace an already existing container given a symbolic name, a real name, and a data type.

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

set container values * <sym_name>,<real_name>,<data_type>;

The request must end with a semicolon and must contain the symbolic name, the real name (in most cases a file name), and the type of data represented by this container (e.g. cedar, netcdf, cdf, hdf, etc...).

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, CONTAINER_TYPE, _BESDataHandlerInterface::data, BESResponseHandlerList::find_handler(), BESTokenizer::get_next_token(), BESTokenizer::parse_error(), PERSISTENCE_VOLATILE, REAL_NAME, SETCONTAINER, STORE_NAME, SYMBOLIC_NAME, and BESResponseHandlerList::TheList().

Here is the call graph for this function:

void BESSetContainerCommand::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 BESCommand::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Here is the call graph for this function:

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

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

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

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


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 Thu Sep 11 07:57:37 2008 for OPeNDAP Back End Server (BES) by  doxygen 1.5.6