Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Defines
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

namespace  icl
 

The ICL-namespace.


namespace  icl::utils

Defines

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

Define Documentation

#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;

registration macro for configurables

See also:
Configurable Registration
#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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines