OBTPluginInterface.h File Reference

#include "OBT.h"
#include <string>
Include dependency graph for OBTPluginInterface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OBT::PluginInterface
 Plugin interface. More...

Namespaces

namespace  OBT

Defines

#define OBT_EXPORT_API_DECL
 Export directive declaration.
#define OBT_EXPORT_PLUGIN_API(PluginInterfaceImpl)
 Macro to declare the entry point of the plug-in.
#define OBT_PLUGIN_HANDLE   void*
 Dynamic library handler declaration.

Define Documentation

#define OBT_EXPORT_API_DECL

Export directive declaration.

Needed for the Windows dll.

Definition at line 12 of file OBTPluginInterface.h.

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

Macro to declare the entry point of the plug-in.

Parameters:
PluginInterfaceImpl a class which implements the plug-in interface.

The aim of this macro is to provide a simple way to declare the entry method of a plug-in which use an OBT::PluginInterface and can be loaded by a OBT::PluginLoader.

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

Definition at line 24 of file OBTPluginInterface.h.

#define OBT_PLUGIN_HANDLE   void*

Dynamic library handler declaration.

According to the platform.

Definition at line 40 of file OBTPluginInterface.h.

Referenced by OBT::PluginLoaderImpl::load().


Generated on 1 Jan 2010 for OBT by  doxygen 1.6.1