#include <PluginManager.h>
This is meant to be used from a WireCell::Singleton.
Definition at line 32 of file PluginManager.h.
WireCell::PluginManager::PluginManager |
( |
| ) |
|
|
private |
WireCell::PluginManager::~PluginManager |
( |
| ) |
|
|
private |
Add a plugin. If libname is not given, try to derive it.
Definition at line 32 of file PluginManager.cxx.
37 l->debug(
"already have plugin {}", plugin_name);
42 for (
int ind=0; ind<2; ++ind) {
53 void* lib = dlopen(lname.c_str(), RTLD_NOW);
55 l->error(
"Failed to load {}: {}", lname, dlerror());
60 l->debug(
"loaded plugin #{} \"{}\" from library \"{}\": {}",
66 l->critical(
"no such plugin: \"{}\"", plugin_name);
Thrown when an error involving accessing input or output has occurred.
boost::error_info< struct tag_errmsg, std::string > errmsg
std::map< std::string, Plugin * > m_plugins
Definition at line 80 of file PluginManager.cxx.
83 Plugin* maybe = pit.second;
bool contains(const std::string &symbol_name)
std::map< std::string, Plugin * > m_plugins
The documentation for this class was generated from the following files: