23 #ifndef __ccxx_Plugin_hxx 24 #define __ccxx_Plugin_hxx 62 #ifdef CCXX_OS_WINDOWS 63 #define COMMONCPP_PLUGIN_API __declspec(dllexport) 65 #define COMMONCPP_PLUGIN_API 66 #endif // CCXX_OS_WINDOWS 80 #define CCXX_EXPORT_PLUGIN(CLASS, NAME, VERSION, AUTHOR) \ 82 COMMONCPP_PLUGIN_API ccxx::Plugin *ccxx_plugin_new(void) \ 83 { return(new CLASS); } \ 84 COMMONCPP_PLUGIN_API const char *ccxx_plugin_version(void) \ 85 { return(VERSION); } \ 86 COMMONCPP_PLUGIN_API const char *ccxx_plugin_name(void) \ 88 COMMONCPP_PLUGIN_API const char *ccxx_plugin_author(void) \ 90 COMMONCPP_PLUGIN_API const char *ccxx_plugin_build_date(void) \ 91 { return(__DATE__ " " __TIME__); } \ 92 COMMONCPP_PLUGIN_API const char *ccxx_plugin_class_name(void) \ 96 #endif // __ccxx_Plugin_hxx
class COMMONCPP_API Plugin
Definition: PluginLoader.h++:30
A class representing a dynamically loaded plugin.
Definition: Plugin.h++:40
#define COMMONCPP_API
Definition: Common.h++:126
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
Definition: AllocationMap.c++:25