Image Component Library (ICL)
Classes | Namespaces | Macros
PluginRegister.h File Reference
#include <ICLUtils/Function.h>
#include <ICLUtils/TextTable.h>
#include <string>
#include <map>
#include <sstream>

Go to the source code of this file.

Classes

class  icl::utils::PluginRegister< T >
 Utility class for plugin registration. More...
 
struct  icl::utils::PluginRegister< T >::Plugin
 internally used instance type: More...
 

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::utils
 

Macros

#define REGISTER_PLUGIN(TYPE, NAME, CREATE_FUNCTION, DESCRIPTION, SYNTAX)
 

Macro Definition Documentation

◆ REGISTER_PLUGIN

#define REGISTER_PLUGIN (   TYPE,
  NAME,
  CREATE_FUNCTION,
  DESCRIPTION,
  SYNTAX 
)
Value:
struct Static_##TYPE##_PluginRegistration__##NAME{ \
Static_##TYPE##_PluginRegistration__##NAME(){ \
PluginRegister<TYPE> &r = PluginRegister<TYPE>::instance(); \
r.add(#NAME,CREATE_FUNCTION,DESCRIPTION,SYNTAX); \
} \
} static_##TYPE##_PluginRegistration__##NAME;