iCub-main
Loading...
Searching...
No Matches
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
25 public yarp::os::Wire
26{
27public:
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.
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.