OBTBasicPlugin.h File Reference

#include "OBTPluginInterface.h"
#include "OBTPluginInformation.h"
Include dependency graph for OBTBasicPlugin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OBT::BasicPlugin
 Basic plugin. More...

Namespaces

namespace  OBT

Defines

#define OBT_EXPORT_BASIC_PLUGIN_API(Informations)
 Macro to declare the entry point of a basic plugin.

Define Documentation

#define OBT_EXPORT_BASIC_PLUGIN_API ( Informations   ) 
Value:
extern "C" \
  { \
    OBT_EXPORT_API_DECL OBT::PluginInterface* get_OBT_PluginInterface() \
    { \
    static OBT::BasicPlugin _pluginInterface( Informations ) ; \
      return &_pluginInterface ; \
    } \
  }

Macro to declare the entry point of a basic plugin.

Parameters:
Informations a OBT::PluginInformation object which defines the informations of the plugin.

The aim of this macro is to provide a simple way to declare the entry method of a plugin which uses an OBT::BasicPlugin and can be loaded by a OBT::PluginLoader.

See How to export the plug-in entry method ?.

Definition at line 17 of file OBTBasicPlugin.h.


Generated on 1 Jan 2010 for OBT by  doxygen 1.6.1