#include <ArServerSimpleCommands.h>
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 |
| ArServerHandlerCommands * | myCommands |
| FILE * | myFile |
| int | myNumVals |
| ArRetFunctor1C< bool, ArServerSimpleLogRobotDebugPackets, ArRobotPacket * > | myPacketHandlerCB |
| ArRobot * | myRobot |
| ArRetFunctor1C< bool, ArServerSimpleLogRobotDebugPackets, const char * > | myStartLoggingCB |
| ArRetFunctorC< bool, ArServerSimpleLogRobotDebugPackets > | myStopLoggingCB |
| std::map< int, int > | myVals |
| ArServerSimpleLogRobotDebugPackets::ArServerSimpleLogRobotDebugPackets | ( | ArServerHandlerCommands * | commands, | |
| ArRobot * | robot, | |||
| const char * | baseDirectory = "" | |||
| ) |
Constructor.
| ArServerSimpleLogRobotDebugPackets::~ArServerSimpleLogRobotDebugPackets | ( | ) | [virtual] |
Destructor.
| 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.
std::string ArServerSimpleLogRobotDebugPackets::myBaseDir [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] |
1.4.7