#include <feeserver/fee_cmd.hh>
Public Member Functions | |
CommandChannel (const std::string &server, Main &main) | |
virtual | ~CommandChannel () |
Protected Member Functions | |
CommandChannel (const CommandChannel &) | |
CommandChannel & | operator= (const CommandChannel &) |
void | Handle (const unsigned char *data, size_t size) |
Protected Attributes | |
Main & | _main |
Command | _cmd |
CommandHandler * | _handler |
Friends | |
class | CommandHandler |
FeeServer::CommandChannel::CommandChannel | ( | const std::string & | server, | |
Main & | main | |||
) |
Constructor
FeeServer::CommandChannel::~CommandChannel | ( | ) | [virtual] |
Destructor
FeeServer::CommandChannel::CommandChannel | ( | const CommandChannel & | ) | [protected] |
Not implemented
CommandChannel& FeeServer::CommandChannel::operator= | ( | const CommandChannel & | ) | [protected] |
Not implemented
void FeeServer::CommandChannel::Handle | ( | const unsigned char * | data, | |
size_t | size | |||
) | [protected] |
Handle the commands. In this class we simply turn the passed data into a proper format, and pass that on to the main object. This object will in turn do the actual processing, possibly sending the request on to the control engine.
data | Command channel data | |
size | Size of data |
friend class CommandHandler [friend] |
Command handler is a friend
Main& FeeServer::CommandChannel::_main [protected] |
Back reference to the FeeServer
Command FeeServer::CommandChannel::_cmd [protected] |
Current command
CommandHandler* FeeServer::CommandChannel::_handler [protected] |
Command handler