41#include <unordered_map>
56 throw std::runtime_error(
57 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
58 "parameterType is: '" +
59 std::to_string(
type) +
60 "' while the type of the parameter variable is BOOL (0). The corresponding variable name is not known, but here are its "
61 "possible values :'" +
62 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
68 throw std::runtime_error(
69 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
70 "parameterType is: '" +
71 std::to_string(
type) +
72 "' while the type of the parameter variable is INT (1). The corresponding variable name is not known, but here are its "
73 "possible values :'" +
74 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
80 throw std::runtime_error(
81 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
82 "parameterType is: '" +
83 std::to_string(
type) +
84 "' while the type of the parameter variable is UINT (2). The corresponding variable name is not known, but here are its "
85 "possible values :'" +
86 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
92 throw std::runtime_error(
93 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
94 "parameterType is: '" +
95 std::to_string(
type) +
96 "' while the type of the parameter variable is STRING (3). The corresponding variable name is not known, but here are its "
97 "possible values :'" +
98 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
104 throw std::runtime_error(
105 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
106 "parameterType is: '" +
107 std::to_string(
type) +
108 "' while the type of the parameter variable is FLOAT (4). The corresponding variable name is not known, but here are its "
109 "possible values :'" +
110 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
116 throw std::runtime_error(
117 "During the initialization of the library parameter maps, a type mismatch has been found. Apparently, the given "
118 "parameterType is: '" +
119 std::to_string(
type) +
120 "' while the type of the parameter variable is DOUBLE (5). The corresponding variable name is not known, but here are its "
121 "possible values :'" +
122 possibleValues +
"'. If you recently added a new parameter in the parameter map, the given type is probably wrong.");
Definition jobManagement.hpp:50
void setParameterValue(ParameterMap ¶meterMap, const std::string ¶meterName, const std::string ¶meterValue, bool fromPreset)
Definition parameterManager.cpp:169
ParameterType
Definition parameterManager.hpp:45
@ INT
Definition parameterManager.hpp:45
@ STRING
Definition parameterManager.hpp:45
@ FLOAT
Definition parameterManager.hpp:45
@ UINT
Definition parameterManager.hpp:45
@ DOUBLE
Definition parameterManager.hpp:45
@ BOOL
Definition parameterManager.hpp:45
std::unordered_map< std::string, ParameterInfo > ParameterMap
Definition parameterManager.hpp:127
Definition parameterManager.hpp:47
std::string possibleValues
Definition parameterManager.hpp:49
ParameterInfo(const ParameterType &type, const std::string &possibleValues, size_t *parameterPtr)
Definition parameterManager.hpp:77
ParameterInfo(const ParameterType &type, const std::string &possibleValues, float *parameterPtr)
Definition parameterManager.hpp:101
ParameterInfo(const ParameterType &type, const std::string &possibleValues, int *parameterPtr)
Definition parameterManager.hpp:65
ParameterInfo(const ParameterType &type, const std::string &possibleValues, bool *parameterPtr)
Definition parameterManager.hpp:53
bool inPreset
Definition parameterManager.hpp:51
void * parameterPtr
Definition parameterManager.hpp:50
ParameterInfo(const ParameterType &type, const std::string &possibleValues, std::string *parameterPtr)
Definition parameterManager.hpp:89
ParameterInfo(const ParameterType &type, const std::string &possibleValues, double *parameterPtr)
Definition parameterManager.hpp:113
ParameterType type
Definition parameterManager.hpp:48