Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BESGetCommand Class Reference

#include <BESGetCommand.h>

Inheritance diagram for BESGetCommand:

[legend]
Collaboration diagram for BESGetCommand:
[legend]
List of all members.

Public Member Functions

 BESGetCommand (const string &cmd)
virtual ~BESGetCommand ()
virtual BESResponseHandlerparse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi)
 knows how to parse a get request
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

BESGetCommand::BESGetCommand const string &  cmd  )  [inline]
 

virtual BESGetCommand::~BESGetCommand  )  [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 BESGetCommand::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.

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

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

Reimplemented in BESDefineCommand, and BESSetCommand.

BESResponseHandler * BESGetCommand::parse_request BESTokenizer tokenizer,
BESDataHandlerInterface dhi
[virtual]
 

knows how to parse a get request

This class knows how to parse a get request, building a sub response handler that actually knows how to build the requested response object, such as das, dds, data, ddx, etc...

A get request looks like:

get <response_type> for <def_name> [return as <ret_name>;

where response_type is the type of response being requested, for example das, dds, dods. where def_name is the name of the definition that has already been created, like a view into the data where ret_name is the method of transmitting the response. This is optional.

This parse method creates the sub response handler, retrieves the definition information and finds the return object if one is specified.

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

Implements BESCommand.


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 May 3 23:11:00 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.4