libcrn
3.9.5
A document image processing library
|
A dynamic module manager. More...
#include <CRNModule.h>
Public Member Functions | |
int | LoadDirectory (const Path &dirname, const String &ext=U"") |
Loads modules contained in a directory. More... | |
std::vector< std::shared_ptr < Category > > | GetModules () const |
Retrieves the modules that implement a given interface. More... | |
bool | RegisterModule (std::shared_ptr< Category > mod) |
Registers a new module. DO NOT USE THIS METHOD DIRECTLY. Call CRN_BEGIN/END_MODULE. More... | |
ModuleManager () | |
Default constructor. More... | |
~ModuleManager () | |
Destructor frees handles. More... | |
A dynamic module manager.
A dynamic module manager.
The Category class declaration must call the macro CRN_DECLARE_MODULE(Category).
Definition at line 78 of file CRNModule.h.
|
inline |
Default constructor.
Definition at line 156 of file CRNModule.h.
|
inline |
Destructor frees handles.
Definition at line 158 of file CRNModule.h.
|
inline |
Retrieves the modules that implement a given interface.
Definition at line 135 of file CRNModule.h.
|
inline |
Loads modules contained in a directory.
Loads modules contained in a directory.
[in] | dirname | the path to the module files |
[in] | ext | the extension of the files to load (leave blank to load all files) |
Definition at line 89 of file CRNModule.h.
|
inline |
Registers a new module. DO NOT USE THIS METHOD DIRECTLY. Call CRN_BEGIN/END_MODULE.
Definition at line 141 of file CRNModule.h.