#include <CommandProcessor.hpp>
Classes | |
struct | CommandGrammar |
Public Member Functions | |
CommandProcessor (CommandInterface &ci) | |
virtual | ~CommandProcessor () |
CommandInterface::result_type | process (const std::string &msg) |
Friends | |
struct | CommandGrammar |
whereas does commands will by send wrapped in a message as described in the documentation of the glove::comm::composeMsg(const string&) function.
For details on the parameters of the above mentioned commands we refer to the documentation of CommandInterface.
glove::comm::CommandProcessor::CommandProcessor | ( | CommandInterface & | ci | ) |
The constructor that associates this CommandProcessor with a particular CommandInterface.
ci | The CommandInterface that should be used with this CommandProcessor |
virtual glove::comm::CommandProcessor::~CommandProcessor | ( | ) | [virtual] |
The destructor.
CommandInterface::result_type glove::comm::CommandProcessor::process | ( | const std::string & | msg | ) |
This function parses the given string and returns the blob that is provided by the associtated CommandInterface.
std::runtime_error | If the given command isn't valid/ known by the CommandProcessor. |
[in] | msg | The string to be parsed. |