Skip to content

Commit

Permalink
Temporarily adjust the paramParser generated files for the devices to…
Browse files Browse the repository at this point in the history
… be compiled under yarp3.9
  • Loading branch information
MSECode committed Sep 25, 2024
1 parent c01a493 commit 6f5a7d8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#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 @@ -40,11 +41,13 @@
*
*/

class FakeRawValuesPublisher_ParamsParser : public yarp::dev::IDeviceDriverParams
//class FakeRawValuesPublisher_ParamsParser : public yarp::dev::IDeviceDriverParams

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

public:
const std::string m_device_classname = {"FakeRawValuesPublisher"};
Expand All @@ -65,11 +68,11 @@ class FakeRawValuesPublisher_ParamsParser : public yarp::dev::IDeviceDriverParam
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) 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;
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;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#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,11 +43,13 @@
*
*/

class RawValuesPublisherClient_ParamsParser : public yarp::dev::IDeviceDriverParams
//class RawValuesPublisherClient_ParamsParser : public yarp::dev::IDeviceDriverParams

class RawValuesPublisherClient_ParamsParser
{
public:
RawValuesPublisherClient_ParamsParser();
~RawValuesPublisherClient_ParamsParser() override = default;
~RawValuesPublisherClient_ParamsParser() = default;

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

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;
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;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#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 @@ -39,11 +40,13 @@
*
*/

class RawValuesPublisherServer_ParamsParser : public yarp::dev::IDeviceDriverParams
//class RawValuesPublisherServer_ParamsParser : public yarp::dev::IDeviceDriverParams

class RawValuesPublisherServer_ParamsParser
{
public:
RawValuesPublisherServer_ParamsParser();
~RawValuesPublisherServer_ParamsParser() override = default;
~RawValuesPublisherServer_ParamsParser() = default;

public:
const std::string m_device_classname = {"RawValuesPublisherServer"};
Expand All @@ -62,11 +65,11 @@ class RawValuesPublisherServer_ParamsParser : public yarp::dev::IDeviceDriverPar
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) 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;
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;
};

#endif

0 comments on commit 6f5a7d8

Please sign in to comment.