QDaqFwdCommand Class Reference

List of all members.

Detailed Description

Author:
sergio.didomizio@ge.infn.it
This class inherits from QCommand base class. Its purpose is simply to forward commands to the server specified by the modifier keyword. Answers to "forward" command are the same the recipien server would have given as response to the forwarded command. When the forward command is received, the string containing parameters is not parsed and is passed "as is" to the recipient server. This result is obtained overloading of the QCommand::ParseParameters() method.


Public Member Functions

 QDaqFwdCommand ()
 constructor
virtual ~QDaqFwdCommand ()
 destructor
virtual void Execute ()
 forward command to server specified in modifier
virtual void CheckParams ()
 check that modifier matches one of the allowed recipient server string identifiers

Protected Member Functions

virtual bool ParseParameters ()
 do nothing leave parameters string as is

Private Attributes

std::map< std::string, srvinfo_t > fAddresses
 map of allowed command recipients and corresponding network coordinates
std::map< std::string, srvinfo_t
>::iterator 
fAddrIt
 fAddresses map iterator

Friends

class QDaqServer


Member Function Documentation

void QDaqFwdCommand::Execute (  )  [virtual]

forward command to server specified in modifier

This method opens a client side connection to the server specified by the modifier and forwards to it the string that usually contains command parameters. Answer (if any) from contacted server is returned as answer to the calling client.

void QDaqFwdCommand::CheckParams (  )  [virtual]

check that modifier matches one of the allowed recipient server string identifiers

Only forward to slow server is implemented up to now. Corresponding identifier is "slowserver"


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:42 2009 for CUORE Software by  doxygen 1.5.1