YARP
Yet Another Robot Platform
FakeBatteryService.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 // Autogenerated by Thrift Compiler (0.14.1-yarped)
7 //
8 // This is an automatically generated file.
9 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10 
11 #ifndef YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
12 #define YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
13 
14 #include <yarp/os/Wire.h>
15 #include <yarp/os/idl/WireTypes.h>
16 
18  public yarp::os::Wire
19 {
20 public:
21  // Constructor
23 
24  virtual void setBatteryVoltage(const double voltage);
25 
26  virtual void setBatteryCurrent(const double current);
27 
28  virtual void setBatteryCharge(const double charge);
29 
30  virtual void setBatteryInfo(const std::string& info);
31 
32  virtual void setBatteryTemperature(const double temperature);
33 
34  virtual double getBatteryVoltage();
35 
36  virtual double getBatteryCurrent();
37 
38  virtual double getBatteryCharge();
39 
40  virtual std::string getBatteryStatus();
41 
42  virtual std::string getBatteryInfo();
43 
44  virtual double getBatteryTemperature();
45 
46  // help method
47  virtual std::vector<std::string> help(const std::string& functionName = "--all");
48 
49  // read from ConnectionReader
50  bool read(yarp::os::ConnectionReader& connection) override;
51 };
52 
53 #endif // YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
virtual std::string getBatteryInfo()
virtual double getBatteryVoltage()
virtual void setBatteryInfo(const std::string &info)
virtual void setBatteryTemperature(const double temperature)
virtual double getBatteryCharge()
virtual std::string getBatteryStatus()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void setBatteryCharge(const double charge)
virtual void setBatteryVoltage(const double voltage)
virtual double getBatteryCurrent()
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual void setBatteryCurrent(const double current)
virtual double getBatteryTemperature()
An interface for reading from a network connection.
Base class for IDL client/server.
Definition: Wire.h:19