Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OCL::TCP::TcpReportingInterpreter Class Reference

#include <command.hpp>

Public Member Functions

void addCommand (Command *command)
 
DatasendergetConnection () 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
 

Detailed Description

Reads a line from the client and interprete it.

Definition at line 45 of file command.hpp.

Constructor & Destructor Documentation

OCL::TCP::TcpReportingInterpreter::TcpReportingInterpreter ( Datasender parent)

After setup, the interpreter will only recognize the command 'VERSION 1.0' by default.

Definition at line 527 of file command.cpp.

OCL::TCP::TcpReportingInterpreter::~TcpReportingInterpreter ( )

Definition at line 536 of file command.cpp.

Member Function Documentation

void OCL::TCP::TcpReportingInterpreter::addCommand ( Command command)

Add support for the given command.

Definition at line 546 of file command.cpp.

Datasender * OCL::TCP::TcpReportingInterpreter::getConnection ( ) const

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.

void OCL::TCP::TcpReportingInterpreter::process ( )

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.

void OCL::TCP::TcpReportingInterpreter::setVersion10 ( )

Accept all valid commands (except 'VERSION 1.0')

Definition at line 662 of file command.cpp.

Member Data Documentation

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.

RTT::os::MutexRecursive OCL::TCP::TcpReportingInterpreter::commands
protected

Definition at line 49 of file command.hpp.


The documentation for this class was generated from the following files:


ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27