#include <YarpService.h>

Public Member Functions | |
| YarpService (const char *listeningPort, const char *configFile) | |
| ~YarpService () | |
Private Member Functions | |
| bool | FillBottle (yarp::os::Bottle &botIn, yarp::os::Bottle &bot) |
| void | PutIntoBottle (ServiceLocatedObject *lo, yarp::os::Bottle &bot) |
class YarpService Implementation for yarp reading bottles and calling the lo ServiceInterface functionality
Definition at line 21 of file YarpService.h.
| jlo::YarpService::YarpService | ( | const char * | listeningPort, |
| const char * | configFile | ||
| ) |
Start the service listening to listeningPort, g_stopAll can stop the loop after next read
Definition at line 52 of file YarpService.cpp.
Closing of the ports
Definition at line 315 of file YarpService.cpp.
| bool jlo::YarpService::FillBottle | ( | yarp::os::Bottle & | botIn, |
| yarp::os::Bottle & | bot | ||
| ) | [private] |
Parses the bottle and reacts on the input, by generating the answer
| botIn | incoming request |
| bot | outgoing answer |
One number can only mean an id: ID-Query
Two numbers are interpreted as id + parent pair: Parent-Query
Empty Bottle are not good
More than 2 values should be data: Set Lo
Definition at line 85 of file YarpService.cpp.
| void jlo::YarpService::PutIntoBottle | ( | ServiceLocatedObject * | lo, |
| yarp::os::Bottle & | bot | ||
| ) | [private] |
Write an Lo to a bottle
Definition at line 320 of file YarpService.cpp.