YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeSerialPort_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:32 2025
12
13
14#ifndef FAKESERIALPORT_PARAMSPARSER_H
15#define FAKESERIALPORT_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
61{
62public:
64 ~FakeSerialPort_ParamsParser() override = default;
65
66public:
67 const std::string m_device_classname = {"FakeSerialPort"};
68 const std::string m_device_name = {"fakeSerialPort"};
69 bool m_parser_is_strict = false;
71 {
72 int major = 2;
73 int minor = 0;
74 };
76
78
79 const std::string m_comport_defaultValue = {"COM3"};
80 const std::string m_verbose_defaultValue = {"1"};
81 const std::string m_baudrate_defaultValue = {"9600"};
82 const std::string m_xonlim_defaultValue = {"0"};
83 const std::string m_xofflim_defaultValue = {"0"};
84 const std::string m_readmincharacters_defaultValue = {"1"};
85 const std::string m_readtimeoutmsec_defaultValue = {"100"};
86 const std::string m_paritymode_defaultValue = {"EVEN"};
87 const std::string m_ctsenb_defaultValue = {"0"};
88 const std::string m_rtsenb_defaultValue = {"0"};
89 const std::string m_xinenb_defaultValue = {"0"};
90 const std::string m_xoutenb_defaultValue = {"0"};
91 const std::string m_modem_defaultValue = {"0"};
92 const std::string m_rcvenb_defaultValue = {"0"};
93 const std::string m_dsrenb_defaultValue = {"0"};
94 const std::string m_dtrdisable_defaultValue = {"0"};
95 const std::string m_databits_defaultValue = {"7"};
96 const std::string m_stopbits_defaultValue = {"1"};
97 const std::string m_line_terminator_char1_defaultValue = {"'\r'"};
98 const std::string m_line_terminator_char2_defaultValue = {"'\n'"};
99
100 std::string m_comport = {"COM3"};
101 int m_verbose = {1};
102 int m_baudrate = {9600};
103 int m_xonlim = {0};
104 int m_xofflim = {0};
106 int m_readtimeoutmsec = {100};
107 std::string m_paritymode = {"EVEN"};
108 int m_ctsenb = {0};
109 int m_rtsenb = {0};
110 int m_xinenb = {0};
111 int m_xoutenb = {0};
112 int m_modem = {0};
113 int m_rcvenb = {0};
114 int m_dsrenb = {0};
115 int m_dtrdisable = {0};
116 int m_databits = {7};
117 int m_stopbits = {1};
120
121 bool parseParams(const yarp::os::Searchable & config) override;
122 std::string getDeviceClassName() const override { return m_device_classname; }
123 std::string getDeviceName() const override { return m_device_name; }
124 std::string getDocumentationOfDeviceParams() const override;
125 std::vector<std::string> getListOfParams() const override;
126 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
127 std::string getConfiguration() const override;
128};
129
130#endif
This class is the parameters parser for class FakeSerialPort.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
const std::string m_line_terminator_char2_defaultValue
std::string getDeviceName() const override
Get the name of the device (i.e.
const parser_version_type m_parser_version
const std::string m_line_terminator_char1_defaultValue
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.
std::string getConfiguration() const override
Return the configuration of the device.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
~FakeSerialPort_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