FeeServer::ServerCommand Class Reference
[Server commands]

#include <feeserver/fee_scmd.hh>

Inheritance diagram for FeeServer::ServerCommand:

Inheritance graph
[legend]
Collaboration diagram for FeeServer::ServerCommand:

Collaboration graph
[legend]

List of all members.


Detailed Description

base class for server commands

Public Member Functions

 ServerCommand (Main &m, unsigned short mask)
virtual ~ServerCommand ()
virtual bool CanHandle (unsigned short flag) const
virtual short Handle (const std::vector< unsigned char > &idata, const size_t isize, std::vector< unsigned char > &odata, size_t &osize)=0
unsigned short Mask () const

Protected Attributes

const unsigned short _mask
Main_main

Constructor & Destructor Documentation

FeeServer::ServerCommand::ServerCommand ( Main m,
unsigned short  mask 
)

Constructor

Parameters:
m Reference to server
mask Mask of bits to look for

virtual FeeServer::ServerCommand::~ServerCommand (  )  [inline, virtual]

Destructor


Member Function Documentation

virtual bool FeeServer::ServerCommand::CanHandle ( unsigned short  flag  )  const [inline, virtual]

Check if we can handle a request

Parameters:
flag The request flag
Returns:
true if we should handle this request

virtual short FeeServer::ServerCommand::Handle ( const std::vector< unsigned char > &  idata,
const size_t  isize,
std::vector< unsigned char > &  odata,
size_t &  osize 
) [pure virtual]

Handle the command.

Parameters:
idata Input data
isize Size of idata
odata Reference to pointer. On output it should contain the output data.
osize On output, the size of odata
Returns:
Error code or return value

Implemented in FeeServer::UpdateServer, FeeServer::RestartServer, FeeServer::RebootMachine, FeeServer::ShutdownMachine, FeeServer::ExitServer, FeeServer::SetDeadband, FeeServer::GetDeadband, FeeServer::SetIssueTimeout, FeeServer::GetIssueTimeout, FeeServer::SetUpdateRate, FeeServer::GetUpdateRate, FeeServer::SetLogLevel, FeeServer::GetLogLevel, and FeeServer::ShowServices.

unsigned short FeeServer::ServerCommand::Mask (  )  const [inline]

Get the mask


Member Data Documentation

const unsigned short FeeServer::ServerCommand::_mask [protected]

Flag

Reference to server object


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

Generated on Thu Jun 26 17:02:33 2008 for FeeServer++ 0.9 by  doxygen 1.5.6