Factory template for the plugin mechanism.
More...
#include <Plugins.h>
|
template<typename R , typename... Args> |
static R | Create (const std::string &id, Args... args) |
|
template<typename FUNCTION > |
static std::any | function (FUNCTION func) |
|
static bool | debug () |
|
static bool | setDebug (bool new_value) |
|
static stub_t | getCreator (const std::string &id, const std::type_info &info) |
|
static void | addFactory (const std::string &id, stub_t &&func, const std::type_info &signature_type, const std::type_info &return_type) |
|
static void | print_bad_cast (const std::string &id, const stub_t &stub, const std::type_info &signature, const char *msg) |
|
Factory template for the plugin mechanism.
Definition at line 85 of file Plugins.h.
◆ stub_t
◆ addFactory()
void PluginService::addFactory |
( |
const std::string & |
id, |
|
|
PluginService::stub_t && |
stub, |
|
|
const std::type_info & |
signature_type, |
|
|
const std::type_info & |
return_type |
|
) |
| |
|
static |
◆ Create()
template<typename R , typename... Args>
static R dd4hep::PluginService::Create |
( |
const std::string & |
id, |
|
|
Args... |
args |
|
) |
| |
|
inlinestatic |
◆ debug()
bool PluginService::debug |
( |
| ) |
|
|
static |
◆ function()
template<typename FUNCTION >
static std::any dd4hep::PluginService::function |
( |
FUNCTION |
func | ) |
|
|
inlinestatic |
◆ getCreator()
◆ print_bad_cast()
void PluginService::print_bad_cast |
( |
const std::string & |
id, |
|
|
const stub_t & |
stub, |
|
|
const std::type_info & |
signature, |
|
|
const char * |
msg |
|
) |
| |
|
static |
◆ setDebug()
bool PluginService::setDebug |
( |
bool |
new_value | ) |
|
|
static |
The documentation for this class was generated from the following files: