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>
16#include <yarp/dev/IBattery.h>
17
19 public yarp::os::Wire
20{
21public:
22 // Constructor
24
25 virtual void setBatteryVoltage(const double voltage);
26
27 virtual void setBatteryCurrent(const double current);
28
29 virtual void setBatteryCharge(const double charge);
30
32
33 virtual void setBatteryInfo(const std::string& info);
34
35 virtual void setBatteryTemperature(const double temperature);
36
37 virtual double getBatteryVoltage();
38
39 virtual double getBatteryCurrent();
40
41 virtual double getBatteryCharge();
42
44
45 virtual std::string getBatteryStatusString();
46
47 virtual std::string getBatteryInfo();
48
49 virtual double getBatteryTemperature();
50
51 // help method
52 virtual std::vector<std::string> help(const std::string& functionName = "--all");
53
54 // read from ConnectionReader
55 bool read(yarp::os::ConnectionReader& connection) override;
56};
57
58#endif // YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
virtual std::string getBatteryInfo()
virtual void setBatteryStatus(const yarp::dev::IBattery::Battery_status status)
virtual double getBatteryVoltage()
virtual void setBatteryInfo(const std::string &info)
virtual void setBatteryTemperature(const double temperature)
virtual double getBatteryCharge()
virtual yarp::dev::IBattery::Battery_status getBatteryStatus()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void setBatteryCharge(const double charge)
virtual std::string getBatteryStatusString()
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:18