#include <visp3/rbt/vpDynamicFactory.h>
|
void | registerType (const std::string &key, const std::function< std::shared_ptr< T >(const nlohmann::json &)> &function) |
|
void | registerTypeRaw (const std::string &key, const std::function< std::shared_ptr< T >(const std::string &)> function) |
|
std::shared_ptr< T > | buildFromJson (const nlohmann::json &j) |
|
void | setJsonKeyFinder (const std::function< std::string(const nlohmann::json &)> &finderFn) |
|
virtual | ~vpDynamicFactory () |
|
|
std::map< std::string, std::function< std::shared_ptr< T >const nlohmann::json &)> > | m_jsonBuilders |
|
std::map< std::string, std::function< std::shared_ptr< T >const std::string &)> > | m_jsonRawBuilders |
|
std::function< std::string(const nlohmann::json &)> | m_keyFinder |
|
template<typename T>
class vpDynamicFactory< T >
Definition at line 50 of file vpDynamicFactory.h.
◆ ~vpDynamicFactory()
◆ vpDynamicFactory()
◆ buildFromJson()
template<typename T >
std::shared_ptr<T> vpDynamicFactory< T >::buildFromJson |
( |
const nlohmann::json & |
j | ) |
|
|
inline |
◆ registerType()
template<typename T >
void vpDynamicFactory< T >::registerType |
( |
const std::string & |
key, |
|
|
const std::function< std::shared_ptr< T >(const nlohmann::json &)> & |
function |
|
) |
| |
|
inline |
◆ registerTypeRaw()
template<typename T >
void vpDynamicFactory< T >::registerTypeRaw |
( |
const std::string & |
key, |
|
|
const std::function< std::shared_ptr< T >(const std::string &)> |
function |
|
) |
| |
|
inline |
◆ setJsonKeyFinder()
template<typename T >
void vpDynamicFactory< T >::setJsonKeyFinder |
( |
const std::function< std::string(const nlohmann::json &)> & |
finderFn | ) |
|
|
inline |
◆ m_jsonBuilders
template<typename T >
std::map<std::string, std::function<std::shared_ptr<T>const nlohmann::json &)> > vpDynamicFactory< T >::m_jsonBuilders |
|
protected |
◆ m_jsonRawBuilders
template<typename T >
std::map<std::string, std::function<std::shared_ptr<T>const std::string &)> > vpDynamicFactory< T >::m_jsonRawBuilders |
|
protected |
◆ m_keyFinder
template<typename T >
std::function<std::string(const nlohmann::json &)> vpDynamicFactory< T >::m_keyFinder |
|
protected |