14 #ifndef YARP_THRIFT_GENERATOR_SERVICE_IRPCSERVER_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_IRPCSERVER_H
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
42 virtual bool set_answer(
const std::int32_t rightAnswer);
49 virtual std::int32_t
add_int(
const std::int32_t
x);
70 virtual std::vector<std::string>
help(
const std::string& functionName =
"--all");
73 bool read(yarp::os::ConnectionReader& connection)
override;
IRpcServer Interface for an example module.
virtual bool stop()
Stop service.
virtual bool set_answer(const std::int32_t rightAnswer)
Set value for future answers.
virtual std::int32_t get_answer()
Get answer from server.
virtual std::int32_t add_int(const std::int32_t x)
Add one integer to future answers.
virtual bool is_running()
Check is service is running.
virtual std::vector< std::string > help(const std::string &functionName="--all")
bool read(yarp::os::ConnectionReader &connection) override
virtual bool start()
Start service.