CEBL  2.1
Public Member Functions
PluginLoader< T > Class Template Reference

#include <PluginLoader.hpp>

Public Member Functions

 PluginLoader ()
 ~PluginLoader ()
void loadDirs (std::vector< string > dirs)
 load plugins from directories
void loadDir (string dir)
 load plugins from single directory
map< string, SharedLoader< T > > & getPluginsMap ()
map< string, string > & getPathsMap ()
vector< SharedLoader< T > > & getPlugins ()
vector< string > getPaths ()
vector< string > getFileNames ()
vector< string > getNames ()
 get list of plugin names
string getFilename (string plugin_name)
 gets filename of plugin by its name
string getPath (string lib)
 gets plugin path by its name
string getPathByFilename (string lib)
 gets plugin path by its filename
SharedLoader< T > getLoader (string lib)
T * getPlugin (string plugin)
 gets plugin by its name
T * getPluginByFilename (string plugin)
 get plugin by its filename

Detailed Description

template<typename T>
class PluginLoader< T >

Definition at line 55 of file PluginLoader.hpp.


Constructor & Destructor Documentation

template<typename T>
PluginLoader< T >::PluginLoader ( )
inline

Definition at line 67 of file PluginLoader.hpp.

template<typename T >
PluginLoader< T >::~PluginLoader ( )

Definition at line 105 of file PluginLoader.hpp.


Member Function Documentation

template<typename T >
string PluginLoader< T >::getFilename ( string  plugin_name)

gets filename of plugin by its name

Definition at line 226 of file PluginLoader.hpp.

template<typename T >
vector< string > PluginLoader< T >::getFileNames ( )

Definition at line 193 of file PluginLoader.hpp.

template<typename T>
SharedLoader<T> PluginLoader< T >::getLoader ( string  lib)
inline

Definition at line 94 of file PluginLoader.hpp.

template<typename T >
vector< string > PluginLoader< T >::getNames ( )

get list of plugin names

Definition at line 208 of file PluginLoader.hpp.

Referenced by ClassifiersConfig::getNameList(), and FilterConfig::getNameList().

template<typename T >
string PluginLoader< T >::getPath ( string  lib)

gets plugin path by its name

Definition at line 278 of file PluginLoader.hpp.

template<typename T >
string PluginLoader< T >::getPathByFilename ( string  lib)

gets plugin path by its filename

Definition at line 257 of file PluginLoader.hpp.

template<typename T >
vector< string > PluginLoader< T >::getPaths ( )

Definition at line 178 of file PluginLoader.hpp.

Referenced by ClassifiersConfig::getPathList(), and FilterConfig::getPathList().

template<typename T>
map<string, string >& PluginLoader< T >::getPathsMap ( )
inline

Definition at line 82 of file PluginLoader.hpp.

template<typename T >
T * PluginLoader< T >::getPlugin ( string  plugin)
template<typename T >
T * PluginLoader< T >::getPluginByFilename ( string  plugin)

get plugin by its filename

Definition at line 242 of file PluginLoader.hpp.

template<typename T>
vector<SharedLoader<T> >& PluginLoader< T >::getPlugins ( )
template<typename T>
map<string, SharedLoader<T> >& PluginLoader< T >::getPluginsMap ( )
inline

Definition at line 81 of file PluginLoader.hpp.

template<typename T >
void PluginLoader< T >::loadDir ( string  dir)

load plugins from single directory

Definition at line 120 of file PluginLoader.hpp.

Referenced by ClassifiersConfig::ClassifiersConfig(), and FilterConfig::FilterConfig().

template<typename T>
void PluginLoader< T >::loadDirs ( std::vector< string >  dirs)
inline

load plugins from directories

Definition at line 71 of file PluginLoader.hpp.


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