CppPlugin.h File Reference

A base class for C++ plugins in TerraLib. More...

#include "AbstractPlugin.h"

Go to the source code of this file.

Classes

class  te::core::CppPlugin
 The base class for C++ plugins. More...
 

Namespaces

 te
 TerraLib.
 
 te::core
 

Macros

#define TERRALIB_CPP_PLUGIN_BEGIN(plugin_class_name)
 
#define TERRALIB_CPP_PLUGIN_END(plugin_class_name)
 
#define TERRALIB_CPP_PLUGIN_SHUTDOWN    void shutdown()
 
#define TERRALIB_CPP_PLUGIN_STARTUP    void startup()
 
#define TERRALIB_PLUGIN_CALL_BACK_IMPL(PLUGIN_CLASS_NAME)
 This macro should be used by C++ plugins in order to declare the exportable/callable DLL function. More...
 
#define TERRALIB_PLUGIN_EXPORT_MACRO
 

Typedefs

typedef CppPlugin *(* te::core::te_get_plugin_fnct_t) (const PluginInfo &pinfo)
 The type of function for plugin's entry point. More...
 

Detailed Description

A base class for C++ plugins in TerraLib.

Author
Gilberto Ribeiro de Queiroz
Matheus Cavassan Zaglia

Definition in file CppPlugin.h.

Macro Definition Documentation

◆ TERRALIB_CPP_PLUGIN_BEGIN

#define TERRALIB_CPP_PLUGIN_BEGIN (   plugin_class_name)
Value:
class plugin_class_name : public te::core::CppPlugin \
{ \
public: \
\
plugin_class_name(const te::core::PluginInfo& pinfo) \
{ \
}
The base class for C++ plugins.
Definition: CppPlugin.h:47
Basic information about a plugin.
Definition: PluginInfo.h:64

Definition at line 82 of file CppPlugin.h.

◆ TERRALIB_CPP_PLUGIN_END

#define TERRALIB_CPP_PLUGIN_END (   plugin_class_name)
Value:
}; \
TERRALIB_PLUGIN_CALL_BACK_IMPL(plugin_class_name)

Definition at line 98 of file CppPlugin.h.

◆ TERRALIB_CPP_PLUGIN_SHUTDOWN

#define TERRALIB_CPP_PLUGIN_SHUTDOWN    void shutdown()

Definition at line 95 of file CppPlugin.h.

◆ TERRALIB_CPP_PLUGIN_STARTUP

#define TERRALIB_CPP_PLUGIN_STARTUP    void startup()

Definition at line 92 of file CppPlugin.h.

◆ TERRALIB_PLUGIN_CALL_BACK_IMPL

#define TERRALIB_PLUGIN_CALL_BACK_IMPL (   PLUGIN_CLASS_NAME)
Value:
extern "C" TERRALIB_PLUGIN_EXPORT_MACRO te::core::CppPlugin* te_cpp_plugin_get_instance(const te::core::PluginInfo& pinfo); \
\
te::core::CppPlugin* te_cpp_plugin_get_instance(const te::core::PluginInfo& pinfo) \
{ \
return new PLUGIN_CLASS_NAME(pinfo); \
}
#define TERRALIB_PLUGIN_EXPORT_MACRO
Definition: CppPlugin.h:105

This macro should be used by C++ plugins in order to declare the exportable/callable DLL function.

Definition at line 109 of file CppPlugin.h.

◆ TERRALIB_PLUGIN_EXPORT_MACRO

#define TERRALIB_PLUGIN_EXPORT_MACRO

Definition at line 105 of file CppPlugin.h.