26static const std::map<std::string, ParameterType> parameter_type_map = {
 
   27    {
"Bool", ParameterType::BOOL},     {
"BoolArray", ParameterType::BOOL_ARRAY},
 
   28    {
"Int", ParameterType::INT},       {
"IntArray", ParameterType::INT_ARRAY},
 
   29    {
"Double", ParameterType::DOUBLE}, {
"DoubleArray", ParameterType::DOUBLE_ARRAY},
 
   30    {
"String", ParameterType::STRING}, {
"StringArray", ParameterType::STRING_ARRAY},
 
   31    {
"State", ParameterType::STATE},   {
"Vector", ParameterType::VECTOR},
 
   32    {
"Matrix", ParameterType::MATRIX}};
 
   38[[maybe_unused]] 
static const std::map<std::string, ParameterType>& get_parameter_type_map() {
 
   39  return parameter_type_map;
 
   48[[maybe_unused]] 
static ParameterType parameter_type_from_name(
const std::string& name) {
 
   50    return parameter_type_map.at(name);
 
   52    throw std::out_of_range(
"The \"" + name + 
"\" ParameterType does not exist.");
 
   62[[maybe_unused]] 
static std::string get_parameter_type_name(
const ParameterType& parameter_type) {
 
   63  switch (parameter_type) {
 
   64    case ParameterType::BOOL:
 
   66    case ParameterType::BOOL_ARRAY:
 
   68    case ParameterType::INT:
 
   70    case ParameterType::INT_ARRAY:
 
   72    case ParameterType::DOUBLE:
 
   74    case ParameterType::DOUBLE_ARRAY:
 
   76    case ParameterType::STRING:
 
   78    case ParameterType::STRING_ARRAY:
 
   80    case ParameterType::STATE:
 
   82    case ParameterType::VECTOR:
 
   84    case ParameterType::MATRIX:
 
   87      throw std::out_of_range(
"This ParameterType does not exist.");
 
Core state variables and objects.
 
ParameterType
The parameter value types.