A proxy class for C++ plugins. More...
#include <CppPluginProxy.h>
Public Member Functions | |
CppPluginProxy (const te::common::LibraryPtr &lib, Plugin *plugin) | |
Construct a proxy for the real C++ plugin. More... | |
const PluginInfo & | getInfo () const |
Forward the info retrieval to the real plugin. More... | |
bool | isStarted () const |
Forward the info retrieval to the real plugin. More... | |
bool | operator< (const AbstractPlugin &rhs) const |
This overloaded operator can be used to index the plugin in a set. More... | |
void | shutdown () |
Forward the shutdown to the real plugin. More... | |
void | startup () |
Forward the startup to the real plugin . More... | |
~CppPluginProxy () | |
Destructor. More... | |
Private Attributes | |
te::common::LibraryPtr | m_lib |
The library that contains the real plugin. More... | |
std::auto_ptr< Plugin > | m_plugin |
The real C++ plugin. More... | |
A proxy class for C++ plugins.
Definition at line 52 of file CppPluginProxy.h.
te::plugin::CppPluginProxy::CppPluginProxy | ( | const te::common::LibraryPtr & | lib, |
Plugin * | plugin | ||
) |
Construct a proxy for the real C++ plugin.
lib | A pointer to the library that contains the plugin. |
plugin | The real C++ plugin. The CppPluginProxy will take the ownership of the given plugin. |
Definition at line 30 of file CppPluginProxy.cpp.
te::plugin::CppPluginProxy::~CppPluginProxy | ( | ) |
Destructor.
Definition at line 36 of file CppPluginProxy.cpp.
|
virtual |
Forward the info retrieval to the real plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 43 of file CppPluginProxy.cpp.
|
virtual |
Forward the info retrieval to the real plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 48 of file CppPluginProxy.cpp.
|
inherited |
This overloaded operator can be used to index the plugin in a set.
rhs | The right-hand-side plugin. |
Definition at line 38 of file AbstractPlugin.cpp.
References te::plugin::AbstractPlugin::getInfo().
|
virtual |
Forward the shutdown to the real plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 58 of file CppPluginProxy.cpp.
|
virtual |
Forward the startup to the real plugin .
Implements te::plugin::AbstractPlugin.
Definition at line 53 of file CppPluginProxy.cpp.
|
private |
The library that contains the real plugin.
Definition at line 81 of file CppPluginProxy.h.
|
private |
The real C++ plugin.
Definition at line 82 of file CppPluginProxy.h.