ArServerSimpleLogRobotDebugPackets Class Reference

#include <ArServerSimpleCommands.h>

List of all members.


Detailed Description

Class that logs a special debug packet from the robot.
Examples:

serverDemo.cpp.


Public Member Functions

void addToInfoGroup (ArStringInfoGroup *infoGroup, const char *name, int whichVal, const char *format="%d")
 Adds the robot debug info to the info group.
 ArServerSimpleLogRobotDebugPackets (ArServerHandlerCommands *commands, ArRobot *robot, const char *baseDirectory="")
 Constructor.
int getNumValues (void)
 Gets the number of values there are.
int getValue (int whichVal)
 Gets a particular value.
bool packetHandler (ArRobotPacket *packet)
 Internal function that parses the packet.
bool startLogging (const char *fileName="robotDebugPacketsLog.txt")
 Starts the logging.
bool stopLogging (void)
 Ends the logging.
virtual ~ArServerSimpleLogRobotDebugPackets ()
 Destructor.

Protected Attributes

std::string myBaseDir
ArServerHandlerCommandsmyCommands
FILE * myFile
int myNumVals
ArRetFunctor1C< bool, ArServerSimpleLogRobotDebugPackets,
ArRobotPacket * > 
myPacketHandlerCB
ArRobotmyRobot
ArRetFunctor1C< bool, ArServerSimpleLogRobotDebugPackets,
const char * > 
myStartLoggingCB
ArRetFunctorC< bool, ArServerSimpleLogRobotDebugPacketsmyStopLoggingCB
std::map< int, int > myVals


Constructor & Destructor Documentation

ArServerSimpleLogRobotDebugPackets::ArServerSimpleLogRobotDebugPackets ( ArServerHandlerCommands commands,
ArRobot robot,
const char *  baseDirectory = "" 
)

Constructor.

ArServerSimpleLogRobotDebugPackets::~ArServerSimpleLogRobotDebugPackets (  )  [virtual]

Destructor.


Member Function Documentation

void ArServerSimpleLogRobotDebugPackets::addToInfoGroup ( ArStringInfoGroup infoGroup,
const char *  name,
int  whichVal,
const char *  format = "%d" 
)

Adds the robot debug info to the info group.

int ArServerSimpleLogRobotDebugPackets::getNumValues ( void   ) 

Gets the number of values there are.

int ArServerSimpleLogRobotDebugPackets::getValue ( int  whichVal  ) 

Gets a particular value.

bool ArServerSimpleLogRobotDebugPackets::packetHandler ( ArRobotPacket packet  ) 

Internal function that parses the packet.

bool ArServerSimpleLogRobotDebugPackets::startLogging ( const char *  fileName = "robotDebugPacketsLog.txt"  ) 

Starts the logging.

bool ArServerSimpleLogRobotDebugPackets::stopLogging ( void   ) 

Ends the logging.


Member Data Documentation

std::string ArServerSimpleLogRobotDebugPackets::myBaseDir [protected]

ArServerHandlerCommands* ArServerSimpleLogRobotDebugPackets::myCommands [protected]

FILE* ArServerSimpleLogRobotDebugPackets::myFile [protected]

int ArServerSimpleLogRobotDebugPackets::myNumVals [protected]

ArRetFunctor1C<bool, ArServerSimpleLogRobotDebugPackets, ArRobotPacket *> ArServerSimpleLogRobotDebugPackets::myPacketHandlerCB [protected]

ArRobot* ArServerSimpleLogRobotDebugPackets::myRobot [protected]

ArRetFunctor1C<bool, ArServerSimpleLogRobotDebugPackets, const char *> ArServerSimpleLogRobotDebugPackets::myStartLoggingCB [protected]

ArRetFunctorC<bool, ArServerSimpleLogRobotDebugPackets> ArServerSimpleLogRobotDebugPackets::myStopLoggingCB [protected]

std::map<int, int> ArServerSimpleLogRobotDebugPackets::myVals [protected]


The documentation for this class was generated from the following files:
Generated on Fri Jul 31 12:37:29 2009 for ArNetworking by  doxygen 1.4.7