LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Go to the source code of this file.
Macros | |
#define | LSST_CONTROL_FIELD(NAME, TYPE, DOC) |
#define | LSST_NESTED_CONTROL_FIELD(NAME, MODULE, TYPE, DOC) |
#define LSST_CONTROL_FIELD | ( | NAME, | |
TYPE, | |||
DOC | |||
) |
A preprocessor macro used to define fields in C++ "control object" structs. These objects can then be wrapped into full-fledged Config objects by the functions in lsst.pex.config.wrap.
The defaults for the config class will be set properly if and only if the control class is default-constructable.
See lsst.pex.config.wrap.makeConfigClass for a complete example of how to use this macro.
#define LSST_NESTED_CONTROL_FIELD | ( | NAME, | |
MODULE, | |||
TYPE, | |||
DOC | |||
) |
A preprocessor macro used to define fields in C++ "control object" structs, for nested control objects. These can be wrapped into Config objects by the functions in lsst.pex.config.wrap.
The nested object will be held as a regular, by-value data member (there's currently no way to use smart pointers or getters/setters instead).
The nested control object class must also be wrapped into a config object, and the Python module of the swigged nested control object must be passed as the MODULE argument to the macro. When a wrapped control object is used as a nested field in the same package it is defined in, the MODULE argument must refer to the actual Swig-generated module, not the just the package, even if the name is lifted into the package namespace.
See lsst.pex.config.wrap.makeConfigClass for a complete example of how to use this macro.