YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeBattery_ParamsParser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6
7// Generated by yarpDeviceParamParserGenerator (2.0)
8// This is an automatically generated file. Please do not edit it.
9// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.
10
11// Generated on: Thu May 22 11:32:31 2025
12
13
14#ifndef FAKEBATTERY_PARAMSPARSER_H
15#define FAKEBATTERY_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
48{
49public:
51 ~FakeBattery_ParamsParser() override = default;
52
53public:
54 const std::string m_device_classname = {"FakeBattery"};
55 const std::string m_device_name = {"fakeBattery"};
56 bool m_parser_is_strict = false;
58 {
59 int major = 2;
60 int minor = 0;
61 };
63
65
66 const std::string m_period_defaultValue = {"0.02"};
67 const std::string m_charge_defaultValue = {"50.0"};
68 const std::string m_voltage_defaultValue = {"30.0"};
69 const std::string m_current_defaultValue = {"3.0"};
70 const std::string m_temperature_defaultValue = {"20.0"};
71 const std::string m_info_defaultValue = {"Fake battery system v2.0"};
72 const std::string m_rpc_port_name_defaultValue = {"/fakeBattery/rpc"};
73
74 double m_period = {0.02};
75 double m_charge = {50.0};
76 double m_voltage = {30.0};
77 double m_current = {3.0};
78 double m_temperature = {20.0};
79 std::string m_info = {"Fake battery system v2.0"};
80 std::string m_rpc_port_name = {"/fakeBattery/rpc"};
81
82 bool parseParams(const yarp::os::Searchable & config) override;
83 std::string getDeviceClassName() const override { return m_device_classname; }
84 std::string getDeviceName() const override { return m_device_name; }
85 std::string getDocumentationOfDeviceParams() const override;
86 std::vector<std::string> getListOfParams() const override;
87 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
88 std::string getConfiguration() const override;
89};
90
91#endif
This class is the parameters parser for class FakeBattery.
const std::string m_temperature_defaultValue
const parser_version_type m_parser_version
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
const std::string m_rpc_port_name_defaultValue
std::string getConfiguration() const override
Return the configuration of the device.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
std::string getDeviceName() const override
Get the name of the device (i.e.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
~FakeBattery_ParamsParser() override=default
An interface for the management of the parameters of a DeviceDriver.
A base class for nested structures that can be searched.
Definition Searchable.h:31