BasicPlugin< Class, Iface > Class Template Reference

#include <Pt/System/Plugin.h>

A plugin implementation. More...

Inherits Plugin< Iface >.

Public Member Functions

 BasicPlugin (const std::string &feature, const std::string &info=std::string())
 Constructs with feature string and info.
Iface * create ()
 Creates an instance.
void destroy (Iface *instance)
 Destroys an instance.
virtual const char * feature () const
 Returns the plugin feature string.
virtual const char * info () const
 Returns the plugin info string.
const std::type_info & iface () const
 Returns the type of the plugin interface.

Detailed Description

template<typename Class, typename Iface>
class Pt::System::BasicPlugin< Class, Iface >

BasicPlugin is a Plugin that constructs with new and destroys with delete. The first template argument is the concrete class. The second is the interface. The constructor takes a feature string and an optional info string.