Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

ArServerSimpleComUC Class Reference

This class will let you send commands to the microcontroller (com, comInt, and com2Bytes). More...

#include <ArServerSimpleCommands.h>

List of all members.

Public Member Functions

 ArServerSimpleComUC (ArServerHandlerCommands *handlerCommands, ArRobot *robot)
 Constructor.
void command (ArArgumentBuilder *arg)
 Handles the command.
virtual ~ArServerSimpleComUC ()
 Destructor.

Protected Attributes

ArFunctor1C< ArServerSimpleComUC,
ArArgumentBuilder * > 
myCommandCB
ArServerHandlerCommandsmyHandlerCommands
ArRobotmyRobot


Detailed Description

This class will let you send commands to the microcontroller (com, comInt, and com2Bytes).
Examples:

serverDemo.cpp, and simpleServerExample.cpp.

Definition at line 39 of file ArServerSimpleCommands.h.


Constructor & Destructor Documentation

ArServerSimpleComUC::ArServerSimpleComUC ArServerHandlerCommands handlerCommands,
ArRobot robot
 

Constructor.

Definition at line 31 of file ArServerSimpleCommands.cpp.

References ArServerHandlerCommands::addStringCommand(), myCommandCB, myHandlerCommands, and myRobot.

ArServerSimpleComUC::~ArServerSimpleComUC  )  [virtual]
 

Destructor.

Definition at line 41 of file ArServerSimpleCommands.cpp.


Member Function Documentation

void ArServerSimpleComUC::command ArArgumentBuilder arg  ) 
 

Handles the command.

Definition at line 45 of file ArServerSimpleCommands.cpp.

References ArRobot::com(), ArRobot::com2Bytes(), ArRobot::comInt(), command(), ArRobot::lock(), ArLog::log(), myRobot, and ArRobot::unlock().

Referenced by command().


Member Data Documentation

ArFunctor1C<ArServerSimpleComUC, ArArgumentBuilder *> ArServerSimpleComUC::myCommandCB [protected]
 

Definition at line 52 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComUC().

ArServerHandlerCommands* ArServerSimpleComUC::myHandlerCommands [protected]
 

Definition at line 51 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComUC().

ArRobot* ArServerSimpleComUC::myRobot [protected]
 

Definition at line 50 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComUC(), and command().


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:52 2007 for ArNetworking by  doxygen 1.4.0