34 #include <SimoxUtility/algorithm/string.h>
37 #include <RobotAPI/interface/aron.h>
41 template <
class T1,
class T2>
42 std::map<T2, T1>
InvertMap(
const std::map<T1, T2>& m)
45 for (
const auto &[key, val] : m)
47 ret.emplace(val, key);
53 std::map<T, std::string>
InvertMap(
const std::map<std::string, T>& m)
55 return InvertMap<std::string, T>(m);
59 std::map<std::string, T>
InvertMap(
const std::map<T, std::string>& m)
61 return InvertMap<T, std::string>(m);
70 type::Maybe::OPTIONAL,
72 type::Maybe::SHARED_PTR,
73 type::Maybe::UNIQUE_PTR
122 namespace defaultconversion::string
128 {Maybe::RAW_PTR,
"armarx::aron::type::Maybe::RAW_PTR"},
129 {Maybe::SHARED_PTR,
"armarx::aron::type::Maybe::SHARED_PTR"},
130 {Maybe::UNIQUE_PTR,
"armarx::aron::type::Maybe::UNIQUE_PTR"},
131 {Maybe::OPTIONAL,
"armarx::aron::type::Maybe::OPTIONAL"}
160 namespace defaultconversion::typeinfo
221 namespace defaultconversion::string
239 namespace defaultconversion::typeinfo
260 namespace defaultconversion