17 #ifndef HPP_CORE_PLUGIN_HH 18 #define HPP_CORE_PLUGIN_HH 22 #include <hpp/core/config.hh> 33 const std::string&
name ()
const 45 if (initialized_)
return true;
56 : name_ (name), version_ (version), initialized_ (false)
60 std::string name_, version_;
72 #define HPP_CORE_DEFINE_PLUGIN(PluginClassName) \ 74 ::hpp::core::ProblemSolverPlugin* createProblemSolverPlugin () \ 76 return new PluginClassName (); \ 100 #endif // HPP_CORE_PLUGIN_HH Definition: problem-solver.hh:68
bool initialize(ProblemSolverPtr_t ps)
Definition: plugin.hh:43
virtual ~ProblemSolverPlugin()
Definition: plugin.hh:50
const std::string & version() const
Definition: plugin.hh:38
std::string findPluginLibrary(const std::string &name)
bool loadPlugin(const std::string &lib, ProblemSolver *ps)
virtual bool impl_initialize(ProblemSolverPtr_t ps)=0
ProblemSolverPlugin(const std::string &name, const std::string &version)
Definition: plugin.hh:55
const std::string & name() const
Definition: plugin.hh:33
Plugin mechanism to declare new features in ProblemSolver class.
Definition: plugin.hh:31