Code::Blocks  SVN r11506
Public Member Functions | Static Public Member Functions | List of all members
PluginRegistrant< T > Class Template Reference

Plugin registration object. More...

#include <cbplugin.h>

Collaboration diagram for PluginRegistrant< T >:

Public Member Functions

 PluginRegistrant (const wxString &name)
 

Static Public Member Functions

static cbPluginCreatePlugin ()
 
static void FreePlugin (cbPlugin *plugin)
 
static void SDKVersion (int *major, int *minor, int *release)
 

Detailed Description

template<class T>
class PluginRegistrant< T >

Plugin registration object.

Use this class to register your new plugin with Code::Blocks. All you have to do is instantiate a PluginRegistrant object.

Example code to use in one of your plugin's source files (supposedly called "MyPlugin"):
namespace
{
PluginRegistrant<MyPlugin> registration("MyPlugin");
}

Definition at line 1099 of file cbplugin.h.

Constructor & Destructor Documentation

◆ PluginRegistrant()

template<class T>
PluginRegistrant< T >::PluginRegistrant ( const wxString name)
inline
Parameters
nameThe plugin's name.

Definition at line 1103 of file cbplugin.h.

References Manager::Get(), Manager::GetPluginManager(), and PluginManager::RegisterPlugin().

Member Function Documentation

◆ CreatePlugin()

template<class T>
static cbPlugin* PluginRegistrant< T >::CreatePlugin ( )
inlinestatic

Definition at line 1111 of file cbplugin.h.

◆ FreePlugin()

template<class T>
static void PluginRegistrant< T >::FreePlugin ( cbPlugin plugin)
inlinestatic

Definition at line 1116 of file cbplugin.h.

◆ SDKVersion()

template<class T>
static void PluginRegistrant< T >::SDKVersion ( int *  major,
int *  minor,
int *  release 
)
inlinestatic

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