ConverterRegistry.cpp
Go to the documentation of this file.
1#include "ConverterRegistry.h"
2
3#include <SimoxUtility/algorithm/get_map_keys_values.h>
4
5#include "ArmarDEConverter.h"
6
8{
9
15
17 ConverterRegistry::get(const std::string& key) const
18 {
19 auto it = converters.find(key);
20 return it != converters.end() ? it->second.get() : nullptr;
21 }
22
23 std::vector<std::string>
25 {
26 return simox::alg::get_keys(converters);
27 }
28
29} // namespace armarx::armem::server::robot_state::exteroception
ConverterInterface * get(const std::string &key) const