diff --git a/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp b/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp index 62ef4d799f1e32495a93d8fe7eb955d63b623a20..da43a7631f26585412947d053131b948a2652f65 100644 --- a/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp +++ b/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp @@ -485,7 +485,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2MatrixType.contains(simox::alg::to_lower(type)), + StringSlug2MatrixType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); // set elem type @@ -532,7 +532,7 @@ namespace armarx::aron::typereader::xml // set elem type std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2QuaternionType.contains(simox::alg::to_lower(type)), + StringSlug2QuaternionType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setElementType(StringSlug2QuaternionType.at(simox::alg::to_lower(type))); @@ -579,7 +579,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - String2PixelType.contains(simox::alg::to_lower(type)), + String2PixelType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setPixelType(String2PixelType.at(simox::alg::to_lower(type))); @@ -630,7 +630,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2VoxelType.contains(simox::alg::to_lower(type)), + StringSlug2VoxelType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setVoxelType(StringSlug2VoxelType.at(simox::alg::to_lower(type))); @@ -714,7 +714,7 @@ namespace armarx::aron::typereader::xml // check default value if (defaultValue != type::aron_enum::default_value::DEFAULT and - not acceptedValues.contains(defaultValue)) + not acceptedValues.count(defaultValue)) { throw error::ValueNotValidException(__PRETTY_FUNCTION__, "An int enum has a non existing default value set",