Wallaroo
0.8
|
#include <dynamic_loader.h>
Static Public Member Functions | |
static cxx0x::shared_ptr< Plugin > | Load (const std::string &fileName) |
static std::string | Suffix () |
Represent a shared library containing wallaroo class definitions.
Given the file name, Plugin loads a shared library and stores the descritptors of the registered classes defined inside. Then, the classes will be available for the dynamic creation via the Catalog::Create method.
You can get a Plugin istance by using the Plugin::Load method. The instance lifetime is managed by wallaroo: the object is destroyed (and the library is unloaded) when there are no more references (including instances of registered classes and descriptors).
|
inlinestatic |
Load the shared library specified by the file name fileName
thus giving access via the Catalog::Create method to all the classes registered inside with the macro WALLAROO_DYNLIB_REGISTER.
fileName | The path of the shared library to load. |
WrongFile | if the file does not exist or its format is wrong. |
|
inlinestatic |
Returns the platform-specific filename suffix for shared libraries (including the period). In debug mode, the suffix also includes a "d" to specify the debug version of a library.