iCub-main
IRpcServer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 // Autogenerated by Thrift Compiler (0.12.0-yarped)
10 //
11 // This is an automatically generated file.
12 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
13 
14 #ifndef YARP_THRIFT_GENERATOR_SERVICE_IRPCSERVER_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_IRPCSERVER_H
16 
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
19 
24 class IRpcServer :
25  public yarp::os::Wire
26 {
27 public:
28  // Constructor
29  IRpcServer();
30 
35  virtual std::int32_t get_answer();
36 
42  virtual bool set_answer(const std::int32_t rightAnswer);
43 
49  virtual std::int32_t add_int(const std::int32_t x);
50 
55  virtual bool start();
56 
61  virtual bool stop();
62 
67  virtual bool is_running();
68 
69  // help method
70  virtual std::vector<std::string> help(const std::string& functionName = "--all");
71 
72  // read from ConnectionReader
73  bool read(yarp::os::ConnectionReader& connection) override;
74 };
75 
76 #endif // YARP_THRIFT_GENERATOR_SERVICE_IRPCSERVER_H
IRpcServer Interface for an example module.
Definition: IRpcServer.h:26
virtual bool stop()
Stop service.
Definition: IRpcServer.cpp:334
virtual bool set_answer(const std::int32_t rightAnswer)
Set value for future answers.
Definition: IRpcServer.cpp:304
virtual std::int32_t get_answer()
Get answer from server.
Definition: IRpcServer.cpp:294
virtual std::int32_t add_int(const std::int32_t x)
Add one integer to future answers.
Definition: IRpcServer.cpp:314
virtual bool is_running()
Check is service is running.
Definition: IRpcServer.cpp:344
virtual std::vector< std::string > help(const std::string &functionName="--all")
Definition: IRpcServer.cpp:355
bool read(yarp::os::ConnectionReader &connection) override
Definition: IRpcServer.cpp:415
virtual bool start()
Start service.
Definition: IRpcServer.cpp:324