Command to dynamically load a shared library in frePPLe. More...
#include <utils.h>
Public Types | |
| typedef map< string, XMLElement > | ParameterList |
Public Member Functions | |
| void | addParameter (const string &name, const string &value) |
| CommandLoadLibrary () | |
| CommandLoadLibrary (const string &libname) | |
| void | endElement (XMLInput &pIn, const Attribute &pAttr, const DataElement &pElement) |
| void | execute () |
| string | getDescription () const |
| string | getLibraryName () |
| void | setLibraryName (const string &libname) |
Static Public Member Functions | |
| static PyObject * | executePython (PyObject *, PyObject *, PyObject *) |
| static bool | isLoaded (const string &s) |
| static void | printModules () |
Command to dynamically load a shared library in frePPLe.
After loading the library, the function "initialize" of the module is executed.
The current implementation of the command works on the following platforms:
Definition at line 3266 of file utils.h.
| typedef map<string,XMLElement> frepple::utils::CommandLoadLibrary::ParameterList |
| frepple::utils::CommandLoadLibrary::CommandLoadLibrary | ( | const string & | libname | ) | [inline, explicit] |
| frepple::utils::CommandLoadLibrary::CommandLoadLibrary | ( | ) | [inline, explicit] |
| void frepple::utils::CommandLoadLibrary::addParameter | ( | const string & | name, | |
| const string & | value | |||
| ) | [inline] |
| void frepple::utils::CommandLoadLibrary::endElement | ( | XMLInput & | pIn, | |
| const Attribute & | pAttr, | |||
| const DataElement & | pElement | |||
| ) |
| void frepple::utils::CommandLoadLibrary::execute | ( | ) | [virtual] |
Load the library, and execute the initialize() method.
| RuntimeException | When the library can't be loaded or when the initialize() method doesn't exist in the library. |
Implements frepple::utils::Command.
Definition at line 389 of file utils/actions.cpp.
| PyObject * frepple::utils::CommandLoadLibrary::executePython | ( | PyObject * | self, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) | [static] |
Python equivalent of this command.
Definition at line 484 of file utils/actions.cpp.
| string frepple::utils::CommandLoadLibrary::getDescription | ( | ) | const [inline, virtual] |
Reimplemented from frepple::utils::Command.
| string frepple::utils::CommandLoadLibrary::getLibraryName | ( | ) | [inline] |
| static bool frepple::utils::CommandLoadLibrary::isLoaded | ( | const string & | s | ) | [inline, static] |
| void frepple::utils::CommandLoadLibrary::printModules | ( | ) | [static] |
Print all modules that have been loaded.
Definition at line 524 of file utils/actions.cpp.
| void frepple::utils::CommandLoadLibrary::setLibraryName | ( | const string & | libname | ) | [inline] |
1.6.1