#include <DynLoader.h>
Public Member Functions | |
boost::shared_ptr< Module > | loadModule (const std::string &name) const |
Load one user module. | |
boost::shared_ptr< InputModule > | loadInputModule (const std::string &name) const |
Load one input module. | |
Protected Member Functions | |
void * | loadPackageLib (const std::string &packageName) const |
Load the library for a package. | |
void * | loadFactoryFunction (const std::string &className, const std::string &factory) const |
Load the library and find factory symbol. |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 52 of file DynLoader.h.
void * psana::DynLoader::loadFactoryFunction | ( | const std::string & | className, | |
const std::string & | factory | |||
) | const [protected] |
Load the library and find factory symbol.
[in] | className | String in the format Package.Class |
[in] | factory | Prefix for factory function name, like "_psana_module_" |
ExceptionModuleName | ||
ExceptionDlerror |
Definition at line 163 of file DynLoader.cpp.
References loadPackageLib().
Referenced by loadInputModule().
boost::shared_ptr< InputModule > psana::DynLoader::loadInputModule | ( | const std::string & | name | ) | const |
Load one input module.
The name of the module has a format [Package.]Class[:name]
Definition at line 140 of file DynLoader.cpp.
References loadFactoryFunction().
Referenced by psana::PSAna::dataSource().
boost::shared_ptr< Module > psana::DynLoader::loadModule | ( | const std::string & | name | ) | const |
Load one user module.
The name of the module has a format [Language:][Package.]Class[:name]. Accepted languages are "c++", "python", "py" (same as "python).
Definition at line 92 of file DynLoader.cpp.
Referenced by psana::PSAna::dataSource().
void * psana::DynLoader::loadPackageLib | ( | const std::string & | packageName | ) | const [protected] |
Load the library for a package.
[in] | packageName | Package name. |
ExceptionDlerror |
Definition at line 188 of file DynLoader.cpp.
References logger, and MsgLog.
Referenced by loadFactoryFunction().