21 #include <yarp/os/all.h>
23 #include "src/howToDocument_IDL.h"
26 using namespace yarp::os;
28 class FakeModule :
public RFModule,
32 BufferedPort<Bottle> portOut;
33 BufferedPort<Bottle> portIn;
36 bool attach(RpcServer &source)
38 return this->yarp().attachAsServer(source);
44 yInfo()<<
"This is an example thrift service";
59 yInfo()<<
"updateModule is running fine";
64 bool configure(ResourceFinder &rf)
66 portOut.open(
"/how-to-document-modules/data:o");
67 portIn.open(
"/how-to-document-modules/data:i");
74 if (!portOut.isClosed())
77 if (!portIn.isClosed())
86 int main(
int argc,
char *argv[])
89 if (!yarp.checkNetwork())
91 yError(
"unable to find YARP server!");
97 rf.setDefaultContext(
"how-to-document-modules");
98 rf.configure(argc,argv);
99 return mod.runModule(rf);