All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::plugin::CppPluginProxy Class Reference

A proxy class for C++ plugins. More...

#include <CppPluginProxy.h>

Inheritance diagram for te::plugin::CppPluginProxy:
te::plugin::AbstractPlugin

Public Member Functions

 CppPluginProxy (const te::common::LibraryPtr &lib, Plugin *plugin)
 Construct a proxy for the real C++ plugin. More...
 
const PluginInfogetInfo () 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< Pluginm_plugin
 The real C++ plugin. More...
 

Detailed Description

A proxy class for C++ plugins.

See also
AbstractPlugin, Plugin, CppPlugin

Definition at line 52 of file CppPluginProxy.h.

Constructor & Destructor Documentation

te::plugin::CppPluginProxy::CppPluginProxy ( const te::common::LibraryPtr lib,
Plugin plugin 
)

Construct a proxy for the real C++ plugin.

Parameters
libA pointer to the library that contains the plugin.
pluginThe 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.

Member Function Documentation

const te::plugin::PluginInfo & te::plugin::CppPluginProxy::getInfo ( ) const
virtual

Forward the info retrieval to the real plugin.

Implements te::plugin::AbstractPlugin.

Definition at line 43 of file CppPluginProxy.cpp.

bool te::plugin::CppPluginProxy::isStarted ( ) const
virtual

Forward the info retrieval to the real plugin.

Implements te::plugin::AbstractPlugin.

Definition at line 48 of file CppPluginProxy.cpp.

bool te::plugin::AbstractPlugin::operator< ( const AbstractPlugin rhs) const
inherited

This overloaded operator can be used to index the plugin in a set.

Parameters
rhsThe right-hand-side plugin.
Returns
True if this plugin name is lexcographical less than the rhs plugin name.

Definition at line 38 of file AbstractPlugin.cpp.

References te::plugin::AbstractPlugin::getInfo().

void te::plugin::CppPluginProxy::shutdown ( )
virtual

Forward the shutdown to the real plugin.

Implements te::plugin::AbstractPlugin.

Definition at line 58 of file CppPluginProxy.cpp.

void te::plugin::CppPluginProxy::startup ( )
virtual

Forward the startup to the real plugin .

Implements te::plugin::AbstractPlugin.

Definition at line 53 of file CppPluginProxy.cpp.

Member Data Documentation

te::common::LibraryPtr te::plugin::CppPluginProxy::m_lib
private

The library that contains the real plugin.

Definition at line 81 of file CppPluginProxy.h.

std::auto_ptr<Plugin> te::plugin::CppPluginProxy::m_plugin
private

The real C++ plugin.

Definition at line 82 of file CppPluginProxy.h.


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