1#ifndef PLUGIN_LOADER_HPP
2#define PLUGIN_LOADER_HPP
16 void *handle = dlopen(std::string(name).c_str(), RTLD_NOW);
18 throw std::runtime_error(
"Failed to load plugin " + name);
25 throw std::runtime_error(
"Failed to unload plugin " + name +
". Is the plugin loaded?");
27 plugin_map->erase(name);
Definition PluginLoader.hpp:11
std::map< std::string, void * > PluginMap
Definition PluginLoader.hpp:13
static void loadPlugin(const std::string &name)
Definition PluginLoader.hpp:15
static void unloadPlugin(const std::string &name)
Definition PluginLoader.hpp:22
static PluginMap * getPluginMap()
Definition PluginLoader.hpp:30
Definition ContactsAccelerationConstraint.cpp:3