#include <command.hpp>
Public Member Functions | |
void | addCommand (Command *command) |
Datasender * | getConnection () const |
const std::vector< Command * > & | giveCommands () const |
void | process () |
void | removeCommand (const char *name) |
void | setVersion10 () |
TcpReportingInterpreter (Datasender *parent) | |
~TcpReportingInterpreter () | |
Protected Member Functions | |
unsigned int | parseParameters (std::string &ipt, std::string &cmd, std::string **params) |
Protected Attributes | |
Datasender * | _parent |
std::vector< Command * > | cmds |
RTT::os::MutexRecursive | commands |
Reads a line from the client and interprete it.
Definition at line 45 of file command.hpp.
After setup, the interpreter will only recognize the command 'VERSION 1.0' by default.
Definition at line 527 of file command.cpp.
Definition at line 536 of file command.cpp.
void OCL::TCP::TcpReportingInterpreter::addCommand | ( | Command * | command | ) |
Add support for the given command.
Definition at line 546 of file command.cpp.
Get the marshaller associated with the current connection.
Definition at line 570 of file command.cpp.
const std::vector< Command * > & OCL::TCP::TcpReportingInterpreter::giveCommands | ( | ) | const |
Return a reference to the command list.
Definition at line 565 of file command.cpp.
unsigned int OCL::TCP::TcpReportingInterpreter::parseParameters | ( | std::string & | ipt, |
std::string & | cmd, | ||
std::string ** | params | ||
) | [protected] |
Definition at line 615 of file command.cpp.
Definition at line 575 of file command.cpp.
void OCL::TCP::TcpReportingInterpreter::removeCommand | ( | const char * | name | ) |
Remove support for the given command name.
Definition at line 644 of file command.cpp.
Accept all valid commands (except 'VERSION 1.0')
Definition at line 662 of file command.cpp.
Datasender* OCL::TCP::TcpReportingInterpreter::_parent [protected] |
Definition at line 51 of file command.hpp.
std::vector<Command*> OCL::TCP::TcpReportingInterpreter::cmds [protected] |
Definition at line 48 of file command.hpp.
Definition at line 49 of file command.hpp.