Wallaroo  0.8
Static Public Member Functions | List of all members
wallaroo::Plugin Class Reference

#include <dynamic_loader.h>

Static Public Member Functions

static cxx0x::shared_ptr< PluginLoad (const std::string &fileName)
 
static std::string Suffix ()
 

Detailed Description

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).

Member Function Documentation

static cxx0x::shared_ptr< Plugin > wallaroo::Plugin::Load ( const std::string &  fileName)
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.

Parameters
fileNameThe path of the shared library to load.
Exceptions
WrongFileif the file does not exist or its format is wrong.
static std::string wallaroo::Plugin::Suffix ( )
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.


The documentation for this class was generated from the following file: