YARP
Yet Another Robot Platform
FakeBatteryService.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 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_FAKEBATTERYSERVICE_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
16 
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
19 
21  public yarp::os::Wire
22 {
23 public:
24  // Constructor
26 
27  virtual void setBatteryVoltage(const double voltage);
28 
29  virtual void setBatteryCurrent(const double current);
30 
31  virtual void setBatteryCharge(const double charge);
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 
43  virtual std::string getBatteryStatus();
44 
45  virtual std::string getBatteryInfo();
46 
47  virtual double getBatteryTemperature();
48 
49  // help method
50  virtual std::vector<std::string> help(const std::string& functionName = "--all");
51 
52  // read from ConnectionReader
53  bool read(yarp::os::ConnectionReader& connection) override;
54 };
55 
56 #endif // YARP_THRIFT_GENERATOR_SERVICE_FAKEBATTERYSERVICE_H
FakeBatteryService::getBatteryTemperature
virtual double getBatteryTemperature()
Definition: FakeBatteryService.cpp:562
FakeBatteryService::setBatteryTemperature
virtual void setBatteryTemperature(const double temperature)
Definition: FakeBatteryService.cpp:503
FakeBatteryService::getBatteryCurrent
virtual double getBatteryCurrent()
Definition: FakeBatteryService.cpp:522
WireTypes.h
FakeBatteryService::setBatteryCurrent
virtual void setBatteryCurrent(const double current)
Definition: FakeBatteryService.cpp:476
FakeBatteryService::getBatteryCharge
virtual double getBatteryCharge()
Definition: FakeBatteryService.cpp:532
Wire.h
FakeBatteryService::getBatteryStatus
virtual std::string getBatteryStatus()
Definition: FakeBatteryService.cpp:542
FakeBatteryService::FakeBatteryService
FakeBatteryService()
Definition: FakeBatteryService.cpp:462
FakeBatteryService::setBatteryVoltage
virtual void setBatteryVoltage(const double voltage)
Definition: FakeBatteryService.cpp:467
FakeBatteryService
Definition: FakeBatteryService.h:22
FakeBatteryService::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: FakeBatteryService.cpp:639
FakeBatteryService::setBatteryCharge
virtual void setBatteryCharge(const double charge)
Definition: FakeBatteryService.cpp:485
yarp::os::Wire
Base class for IDL client/server.
Definition: Wire.h:22
yarp::os::ConnectionReader
An interface for reading from a network connection.
Definition: ConnectionReader.h:40
FakeBatteryService::getBatteryVoltage
virtual double getBatteryVoltage()
Definition: FakeBatteryService.cpp:512
FakeBatteryService::setBatteryInfo
virtual void setBatteryInfo(const std::string &info)
Definition: FakeBatteryService.cpp:494
FakeBatteryService::getBatteryInfo
virtual std::string getBatteryInfo()
Definition: FakeBatteryService.cpp:552
FakeBatteryService::help
virtual std::vector< std::string > help(const std::string &functionName="--all")
Definition: FakeBatteryService.cpp:573