Image Component Library (ICL)
Classes | Namespaces | Macros
Configurable.h File Reference
#include <ICLUtils/CompatMacros.h>
#include <ICLUtils/Exception.h>
#include <ICLUtils/SmartPtr.h>
#include <ICLUtils/Any.h>
#include <ICLUtils/Function.h>
#include <ICLUtils/UncopiedInstance.h>
#include <ICLUtils/Mutex.h>
#include <vector>
#include <string>
#include <algorithm>
#include <map>

Go to the source code of this file.

Classes

class  icl::utils::Configurable
 Interface for classes that can be configured from configuration-files and GUI-Components. More...
 
struct  icl::utils::Configurable::Property
 Represents a single property. More...
 

Namespaces

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

Macros

#define REGISTER_CONFIGURABLE(NAME, CREATE)
 registration macro for configurables More...
 
#define REGISTER_CONFIGURABLE_DEFAULT(NAME)   REGISTER_CONFIGURABLE(NAME,return new NAME)
 simpel registration macro for configurables that provide a default constructor More...
 

Macro Definition Documentation

◆ REGISTER_CONFIGURABLE

#define REGISTER_CONFIGURABLE (   NAME,
  CREATE 
)
Value:
struct StaticConfigurableRegistrationFor_##NAME{ \
typedef StaticConfigurableRegistrationFor_##NAME This; \
static Configurable *create(){ \
CREATE; \
} \
StaticConfigurableRegistrationFor_##NAME(){ \
Configurable::register_configurable_type(#NAME, &This::create); \
} \
} staticConfigurableRegistrationFor_##NAME;
ICLQt_API core::Img< T > create(const std::string &name, core::format fmt=icl::core::formatRGB)
create a test image (converted to destination core::format) (affinity for floats)

registration macro for configurables

See also
Configurable Registration

◆ REGISTER_CONFIGURABLE_DEFAULT

#define REGISTER_CONFIGURABLE_DEFAULT (   NAME)    REGISTER_CONFIGURABLE(NAME,return new NAME)

simpel registration macro for configurables that provide a default constructor

See also
Configurable Registration