wrap¶
- lsst.pex.config.wrap(ctrl)¶
Add fields from a C++ control class to a
lsst.pex.config.Config
class.- Parameters:
- ctrlobject
The C++ control class.
See also
makeConfigClass
Make a config class.
Notes
See
makeConfigClass
for more information. Thiswrap
decorator is equivalent to callingmakeConfigClass
with the decorated class as thecls
argument.Examples
Use
wrap
like this:@wrap(MyControlClass) class MyConfigClass(Config): pass