33#include "SampleSayCommand.h"
34#include "BESTokenizer.h"
35#include "BESResponseHandlerList.h"
36#include "BESSyntaxUserError.h"
37#include "SampleResponseNames.h"
47 BESResponseHandler *retResponse = BESResponseHandlerList::TheList()->find_handler( SAY_RESPONSE);
49 string s = (string)
"No response handler for command " + SAY_RESPONSE;
50 throw BESSyntaxUserError(s, __FILE__, __LINE__);
54 if (my_token ==
";") {
55 tokenizer.
parse_error(my_token +
" not expected\n");
59 dhi.
data[SAY_WHAT] = my_token;
63 if (my_token !=
"to") {
64 tokenizer.
parse_error(my_token +
" not expected\n");
69 if (my_token ==
";") {
70 tokenizer.
parse_error(my_token +
" not expected\n");
72 dhi.
data[SAY_TO] = my_token;
76 if (my_token !=
";") {
77 tokenizer.
parse_error(my_token +
" not expected\n");
91 strm << BESIndent::LMarg <<
"SampleSayCommand::dump - (" << (
void *)
this <<
")" << endl;
93 BESCommand::dump(strm);
94 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
std::string action
the response object requested, e.g. das, dds
handler object that knows how to create a specific response object
tokenizer for the BES request command string
void parse_error(const std::string &s="")
throws an exception giving the tokens up to the point of the problem
std::string & get_next_token()
returns the next token from the token list
virtual void dump(ostream &strm) const
dumps information about this object