Go to the documentation of this file.
25 template<
typename Derived,
typename T>
29 using T_ptr = std::shared_ptr<T>;
46 Handle(
const std::string & type);
54 std::string type_ =
"";
110 typename std::enable_if<(!std::is_same<U, T>::value) && std::is_base_of<T, U>::value,
int>::type = 0>
115 typename std::enable_if<(!std::is_same<U, T>::value) && std::is_base_of<T, U>::value,
int>::type = 0>
120 typename std::enable_if<(!std::is_same<U, T>::value) && std::is_base_of<T, U>::value,
int>::type = 0>
125 static std::shared_ptr<U> cast(
const T_ptr & p);
132 #include "GenericLoader.hpp"
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
std::shared_ptr< ConstraintSet > T_ptr
Definition: GenericLoader.h:29
Definition: GenericLoader.h:43
Definition: QPSolver.h:85
Definition: GenericLoader.h:26
std::function< T_ptr(mc_solver::QPSolver &, const mc_rtc::Configuration &)> load_fun
Definition: GenericLoader.h:33
Handle & operator=(const Handle &)=delete
std::map< std::string, load_fun > storage_t
Definition: GenericLoader.h:36
static T_ptr load(mc_solver::QPSolver &solver, const std::string &file)
static void unregister_load_function(const std::string &type)
static Handle register_load_function(const std::string &type, load_fun fn)