00001 #ifndef YARPSERVICE_H 00002 #define YARPSERVICE_H 00003 00004 #include "lo/ServiceInterface.h" 00005 #include "lo/ServiceLocatedObject.h" 00006 00007 namespace yarp 00008 { 00009 namespace os 00010 { 00011 class Bottle; 00012 } 00013 } 00014 00015 namespace jlo 00016 { 00021 class YarpService : public ServiceInterface 00022 { 00023 public: 00027 YarpService (const char* listeningPort, const char* configFile); 00031 ~YarpService (); 00032 private: 00038 bool FillBottle(yarp::os::Bottle& botIn, yarp::os::Bottle& bot); 00042 void PutIntoBottle(ServiceLocatedObject* lo, yarp::os::Bottle& bot); 00043 00044 }; 00045 } 00046 #endif /*YARPSERVICE_H*/