8#include <RobotsIO/Utils/Parameters.h>
10using namespace RobotsIO::Utils;
12#define robots_io_field_getter_impl(type) \
13 type Parameters::get_##type(const std::string& name) const \
15 return type##_data_.at(name); \
18#define robots_io_std_field_getter_impl(type) \
19 std::type Parameters::get_##type(const std::string& name) const \
21 return type##_data_.at(name); \
24#define robots_io_field_setter_impl(type) \
25 void Parameters::set_##type(const std::string& name, const type& value) \
27 type##_data_[name] = value; \
30#define robots_io_std_field_setter_impl(type) \
31 void Parameters::set_##type(const std::string& name, const std::type& value) \
33 type##_data_[name] = value; \
37robots_io_std_field_getter_impl(
string);
40robots_io_std_field_getter_impl(
size_t);
43robots_io_field_getter_impl(
double);
46robots_io_field_getter_impl(
int);
49robots_io_field_getter_impl(
bool);
52robots_io_std_field_setter_impl(
string);
55robots_io_std_field_setter_impl(
size_t);
58robots_io_field_setter_impl(
double);
61robots_io_field_setter_impl(
int);
64robots_io_field_setter_impl(
bool);
const Parameters * parameters() const