te::plugin::CppPlugin Class Reference

An abstract interface for Plugins written in C++. More...

#include <CppPlugin.h>

Inheritance diagram for te::plugin::CppPlugin:
te::plugin::Plugin te::plugin::AbstractPlugin te::grib::Platform te::xerces::Module

Public Member Functions

 CppPlugin (const PluginInfo &info)
 It creates a new C++ plugin. More...
 
const PluginInfogetInfo () const
 It return the information associated to the plugin. More...
 
bool isStarted () const
 It tells if the plugin was started or not. More...
 
bool operator< (const AbstractPlugin &rhs) const
 This overloaded operator can be used to index the plugin in a set. More...
 
virtual void shutdown ()
 Do nothing! Just set plugin as stopped. More...
 
virtual void startup ()
 Do nothing! Just set plugin as started. More...
 
virtual ~CppPlugin ()
 Virtual destructor. More...
 

Protected Attributes

bool m_initialized
 A flag that indicates if the plugin was started or not. More...
 
PluginInfo m_pluginInfo
 Information about the plugin. More...
 

Private Member Functions

Not Allowed Methods

No copy allowed.

 CppPlugin (const CppPlugin &rhs)
 No copy constructor allowed. More...
 
CppPluginoperator= (const CppPlugin &rhs)
 No assignment operator allowed. More...
 

Detailed Description

An abstract interface for Plugins written in C++.

Remember to implement the startup and shutdown methods from the base class: Plugin.

See also
Plugin, PluginManager

Definition at line 48 of file CppPlugin.h.

Constructor & Destructor Documentation

te::plugin::CppPlugin::CppPlugin ( const PluginInfo info)

It creates a new C++ plugin.

Parameters
infoInformation about a C++ plugin.
virtual te::plugin::CppPlugin::~CppPlugin ( )
virtual

Virtual destructor.

te::plugin::CppPlugin::CppPlugin ( const CppPlugin rhs)
private

No copy constructor allowed.

Parameters
rhsThe other instance.

Member Function Documentation

const PluginInfo& te::plugin::Plugin::getInfo ( ) const
virtualinherited

It return the information associated to the plugin.

Returns
The information associated to the plugin.

Implements te::plugin::AbstractPlugin.

bool te::plugin::Plugin::isStarted ( ) const
virtualinherited

It tells if the plugin was started or not.

Returns
True if the plugin is started and false otherwise (it is shutdown).

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.
CppPlugin& te::plugin::CppPlugin::operator= ( const CppPlugin rhs)
private

No assignment operator allowed.

Parameters
rhsThe other instance.
Returns
A reference for this instance.

Member Data Documentation

bool te::plugin::Plugin::m_initialized
protectedinherited

A flag that indicates if the plugin was started or not.

Definition at line 79 of file Plugin.h.

PluginInfo te::plugin::Plugin::m_pluginInfo
protectedinherited

Information about the plugin.

Definition at line 78 of file Plugin.h.


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