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.
te::plugin::CppPluginProxy::~CppPluginProxy ( )

Destructor.

Member Function Documentation

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

Forward the info retrieval to the real plugin.

Implements te::plugin::AbstractPlugin.

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

Forward the info retrieval to the real plugin.

Implements te::plugin::AbstractPlugin.

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.
void te::plugin::CppPluginProxy::shutdown ( )
virtual

Forward the shutdown to the real plugin.

Implements te::plugin::AbstractPlugin.

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

Forward the startup to the real plugin .

Implements te::plugin::AbstractPlugin.

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 file: