cppexpose
1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
|
Represents a dynamic plugin library. More...
#include <cppexpose/include/cppexpose/plugin/PluginLibrary.h>
Public Member Functions | |
PluginLibrary (const std::string &filePath) | |
Constructor. More... | |
virtual | ~PluginLibrary () |
Destructor. More... | |
const std::string & | filePath () const |
Get path to library file. More... | |
bool | isValid () const |
Check if plugin library is valid. More... | |
const std::vector< AbstractComponent * > & | components () const |
Get components that belong to the plugin library. More... | |
Protected Member Functions | |
void | addComponent (AbstractComponent *component) |
Add component to library. More... | |
Protected Attributes | |
std::string | m_filePath |
Path to the loaded library. More... | |
void * | m_handle |
Library handle. More... | |
std::vector< AbstractComponent * > | m_components |
List of components that belong to the plugin library. More... | |
Friends | |
class | ComponentManager |
Represents a dynamic plugin library.
cppexpose::PluginLibrary::PluginLibrary | ( | const std::string & | filePath | ) |
Constructor.
[in] | filePath | Path to the loaded library |
|
virtual |
Destructor.
const std::string& cppexpose::PluginLibrary::filePath | ( | ) | const |
Get path to library file.
bool cppexpose::PluginLibrary::isValid | ( | ) | const |
Check if plugin library is valid.
const std::vector<AbstractComponent *>& cppexpose::PluginLibrary::components | ( | ) | const |
Get components that belong to the plugin library.
|
protected |
Add component to library.
[in] | component | Component (must NOT be null!) |
|
friend |
|
protected |
Path to the loaded library.
|
protected |
Library handle.
|
protected |
List of components that belong to the plugin library.