Skip to content

Commit

Permalink
Remove workaround for paramparserGenerator with rawvalues (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode authored Jan 13, 2025
1 parent 5b2afd2 commit 6ec7e9f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#include "FakeRawValuesPublisher_ParamsParser.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#ifndef FAKERAWVALUESPUBLISHER_PARAMSPARSER_H
#define FAKERAWVALUESPUBLISHER_PARAMSPARSER_H

#include <yarp/os/Searchable.h>
// #include <yarp/dev/IDeviceDriverParams.h>
#include <yarp/dev/IDeviceDriverParams.h>
#include <string>
#include <cmath>
#include <vector>

/**
* This class is the parameters parser for class FakeRawValuesPublisher.
Expand All @@ -41,11 +40,11 @@
*
*/

class FakeRawValuesPublisher_ParamsParser
class FakeRawValuesPublisher_ParamsParser : public yarp::dev::IDeviceDriverParams
{
public:
FakeRawValuesPublisher_ParamsParser();
~FakeRawValuesPublisher_ParamsParser() = default;
~FakeRawValuesPublisher_ParamsParser() override = default;

public:
const std::string m_device_classname = {"FakeRawValuesPublisher"};
Expand All @@ -66,11 +65,11 @@ class FakeRawValuesPublisher_ParamsParser
int m_njomos = {0}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
int m_threshold = {0}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.

bool parseParams(const yarp::os::Searchable & config);
std::string getDeviceClassName() const { return m_device_classname; }
std::string getDeviceName() const { return m_device_name; }
std::string getDocumentationOfDeviceParams() const;
std::vector<std::string> getListOfParams() const;
bool parseParams(const yarp::os::Searchable & config) override;
std::string getDeviceClassName() const override { return m_device_classname; }
std::string getDeviceName() const override { return m_device_name; }
std::string getDocumentationOfDeviceParams() const override;
std::vector<std::string> getListOfParams() const override;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#include "RawValuesPublisherClient_ParamsParser.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#ifndef RAWVALUESPUBLISHERCLIENT_PARAMSPARSER_H
#define RAWVALUESPUBLISHERCLIENT_PARAMSPARSER_H

#include <yarp/os/Searchable.h>
// #include <yarp/dev/IDeviceDriverParams.h>
#include <yarp/dev/IDeviceDriverParams.h>
#include <string>
#include <cmath>
#include <vector>

/**
* This class is the parameters parser for class RawValuesPublisherClient.
Expand All @@ -42,13 +41,11 @@
*
*/

// class RawValuesPublisherClient_ParamsParser : public yarp::dev::IDeviceDriverParams
// {
class RawValuesPublisherClient_ParamsParser
class RawValuesPublisherClient_ParamsParser : public yarp::dev::IDeviceDriverParams
{
public:
RawValuesPublisherClient_ParamsParser();
~RawValuesPublisherClient_ParamsParser() = default;
~RawValuesPublisherClient_ParamsParser() override = default;

public:
const std::string m_device_classname = {"RawValuesPublisherClient"};
Expand All @@ -71,11 +68,11 @@ class RawValuesPublisherClient_ParamsParser
bool m_externalConnection = {false};
std::string m_carrier = {"tcp"};

bool parseParams(const yarp::os::Searchable & config);
std::string getDeviceClassName() const { return m_device_classname; }
std::string getDeviceName() const { return m_device_name; }
std::string getDocumentationOfDeviceParams() const;
std::vector<std::string> getListOfParams() const;
bool parseParams(const yarp::os::Searchable & config) override;
std::string getDeviceClassName() const override { return m_device_classname; }
std::string getDeviceName() const override { return m_device_name; }
std::string getDocumentationOfDeviceParams() const override;
std::vector<std::string> getListOfParams() const override;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ yarp_prepare_plugin(rawValuesPublisherServer
TYPE RawValuesPublisherServer
INCLUDE RawValuesPublisherServer.h
EXTRA_CONFIG
WRAPPER=rawValuesPublisherServer
WRAPPER=rawValuesPublisherServer
DEFAULT OFF
GENERATE_PARSER)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#include "RawValuesPublisherServer_ParamsParser.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Fri Oct 4 16:28:45 2024
// Generated on: Wed Jan 8 10:37:54 2025


#ifndef RAWVALUESPUBLISHERSERVER_PARAMSPARSER_H
#define RAWVALUESPUBLISHERSERVER_PARAMSPARSER_H

#include <yarp/os/Searchable.h>
// #include <yarp/dev/IDeviceDriverParams.h>
#include <yarp/dev/IDeviceDriverParams.h>
#include <string>
#include <cmath>
#include <vector>

/**
* This class is the parameters parser for class RawValuesPublisherServer.
Expand All @@ -40,13 +39,11 @@
*
*/

// class RawValuesPublisherServer_ParamsParser : public yarp::dev::IDeviceDriverParams
// {
class RawValuesPublisherServer_ParamsParser
class RawValuesPublisherServer_ParamsParser : public yarp::dev::IDeviceDriverParams
{
public:
RawValuesPublisherServer_ParamsParser();
~RawValuesPublisherServer_ParamsParser() = default;
~RawValuesPublisherServer_ParamsParser() override = default;

public:
const std::string m_device_classname = {"RawValuesPublisherServer"};
Expand All @@ -65,11 +62,11 @@ class RawValuesPublisherServer_ParamsParser
std::string m_name = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
int m_period = {0}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.

bool parseParams(const yarp::os::Searchable & config);
std::string getDeviceClassName() const { return m_device_classname; }
std::string getDeviceName() const { return m_device_name; }
std::string getDocumentationOfDeviceParams() const;
std::vector<std::string> getListOfParams() const;
bool parseParams(const yarp::os::Searchable & config) override;
std::string getDeviceClassName() const override { return m_device_classname; }
std::string getDeviceName() const override { return m_device_name; }
std::string getDocumentationOfDeviceParams() const override;
std::vector<std::string> getListOfParams() const override;
};

#endif

0 comments on commit 6ec7e9f

Please sign in to comment.