|
mc_rtc
2.14.0
|
General wrapper for ltdl functionnalities. More...
#include <mc_rtc/loader.h>
Public Types | |
| typedef std::map< std::string, LTDLHandlePtr > | handle_map_t |
| typedef std::function< void(const std::string &, LTDLHandle &)> | callback_t |
Static Public Attributes | |
| static callback_t | default_cb |
| static std::string | debug_suffix |
Static Protected Member Functions | |
| static bool | init () |
| Initialize ltdl. More... | |
| static bool | close () |
| Close ltdl. Does nothing until the last call. More... | |
| static void | load_libraries (const std::string &class_name, const std::vector< std::string > &paths, handle_map_t &out, bool verbose, callback_t cb) |
| Provide libraries handles for the libraries in paths. More... | |
Friends | |
| template<typename T > | |
| struct | ObjectLoader |
General wrapper for ltdl functionnalities.
| typedef std::function<void(const std::string &, LTDLHandle &)> mc_rtc::Loader::callback_t |
| typedef std::map<std::string, LTDLHandlePtr> mc_rtc::Loader::handle_map_t |
|
staticprotected |
Close ltdl. Does nothing until the last call.
| LoaderException | on failure |
|
staticprotected |
Initialize ltdl.
| LoaderException | if ltdl fails to init |
|
staticprotected |
Provide libraries handles for the libraries in paths.
| class_name | The loader will filter out libraries that do not provide a class_name function that returns the object's name, this allows to filter the loaded libraries |
| paths | a list of the directories searched by the function |
| out | a map (string, handle_type) updated by the function |
| verbose | If true, output some warning information |
| cb | User-provided callback when a new class is discovered |
|
friend |
|
static |
Suffix appended to libraries paths when running in debug mode
|
static |