hpp::core::plugin Namespace Reference

Functions

std::string findPluginLibrary (const std::string &name)
 Find the absolute path to a library named name. More...
 
bool loadPlugin (const std::string &lib, ProblemSolver *ps)
 Load a plugin into ProblemSolver. More...
 

Function Documentation

std::string hpp::core::plugin::findPluginLibrary ( const std::string &  name)

Find the absolute path to a library named name.

Parameters
name
Returns
name if it is an absolute path. Otherwise, for each path in LD_LIBRARY_PATH environment variable, look for path/hppPlugins/name.
Exceptions
std::invalid_argumentif not valid file found.
bool hpp::core::plugin::loadPlugin ( const std::string &  lib,
ProblemSolver ps 
)

Load a plugin into ProblemSolver.

  1. Call findPluginLibrary
  2. Call dlopen and handle errors
  3. ProblemSolverPlugin::initialize with ps