From 3e5d0a7807f058bd39fb937874c16d838261c0aa Mon Sep 17 00:00:00 2001 From: Marco Randazzo Date: Fri, 9 Feb 2024 17:02:15 +0100 Subject: [PATCH] Added default constructor to xxx_ParamsParser generated classes --- .../audioToFileDevice/AudioToFileDevice_ParamsParser.cpp | 2 +- src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.h | 3 ++- src/devices/deviceBundler/DeviceBundler_ParamsParser.cpp | 2 +- src/devices/deviceBundler/DeviceBundler_ParamsParser.h | 3 ++- src/yarpDeviceParamParserGenerator/generate_h_functions.cpp | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.cpp b/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.cpp index a1879b4fca..7b4acea6bb 100644 --- a/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.cpp +++ b/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.cpp @@ -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: Wed Feb 7 16:51:11 2024 +// Generated on: Fri Feb 9 16:59:13 2024 #include "AudioToFileDevice_ParamsParser.h" diff --git a/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.h b/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.h index 7a95a1377a..a034a1acd7 100644 --- a/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.h +++ b/src/devices/audioToFileDevice/AudioToFileDevice_ParamsParser.h @@ -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: Wed Feb 7 16:51:11 2024 +// Generated on: Fri Feb 9 16:59:13 2024 #ifndef AUDIOTOFILEDEVICE_PARAMSPARSER_H @@ -43,6 +43,7 @@ class AudioToFileDevice_ParamsParser : public yarp::dev::IDeviceDriverParams { public: + AudioToFileDevice_ParamsParser() = default; ~AudioToFileDevice_ParamsParser() override = default; public: diff --git a/src/devices/deviceBundler/DeviceBundler_ParamsParser.cpp b/src/devices/deviceBundler/DeviceBundler_ParamsParser.cpp index b06c8ccbca..46664a352e 100644 --- a/src/devices/deviceBundler/DeviceBundler_ParamsParser.cpp +++ b/src/devices/deviceBundler/DeviceBundler_ParamsParser.cpp @@ -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: Wed Feb 7 16:51:11 2024 +// Generated on: Fri Feb 9 16:59:13 2024 #include "DeviceBundler_ParamsParser.h" diff --git a/src/devices/deviceBundler/DeviceBundler_ParamsParser.h b/src/devices/deviceBundler/DeviceBundler_ParamsParser.h index 513ee40c9b..0893fa5d2a 100644 --- a/src/devices/deviceBundler/DeviceBundler_ParamsParser.h +++ b/src/devices/deviceBundler/DeviceBundler_ParamsParser.h @@ -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: Wed Feb 7 16:51:11 2024 +// Generated on: Fri Feb 9 16:59:13 2024 #ifndef DEVICEBUNDLER_PARAMSPARSER_H @@ -43,6 +43,7 @@ class DeviceBundler_ParamsParser : public yarp::dev::IDeviceDriverParams { public: + DeviceBundler_ParamsParser() = default; ~DeviceBundler_ParamsParser() override = default; public: diff --git a/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp b/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp index 3433a90cf5..ac20821bc0 100644 --- a/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp +++ b/src/yarpDeviceParamParserGenerator/generate_h_functions.cpp @@ -69,6 +69,7 @@ std::string ParamsFilesGenerator::generateHeader() class " << m_classname << "_ParamsParser : public yarp::dev::IDeviceDriverParams\n\ {\n\ public:\n\ + " << m_classname << "_ParamsParser() = default;\n\ ~" << m_classname << "_ParamsParser() override = default;\n\ \n\ public:\n";