ParameterSettable::BoolDescriptor Class Reference

Utility Class for customize the description of Boolean parameter. More...

Public Member Functions

 BoolDescriptor (QString paramPath)
 Add (if not exists) the description of a Boolean parameter. More...
 
BoolDescriptordef (bool defaultValue)
 set the default value when the parameter is not present into the configuration More...
 
BoolDescriptorhelp (QString shortHelp, QString longHelp=QString(""))
 Add a short help comment and a complete help comment. More...
 
BoolDescriptorprops (Properties properties)
 set the Properties of this parameter (see Property documentation) More...
 
template<class T >
BoolDescriptorruntime (void(T::*setter)(bool), bool(T::*getter)() const )
 set the runtime accessors for this parameter More...
 

Detailed Description

Utility Class for customize the description of Boolean parameter.

Definition at line 377 of file parametersettable.h.

Constructor & Destructor Documentation

BoolDescriptor ( QString  paramPath)

Add (if not exists) the description of a Boolean parameter.

Warning
Don't call it directly; use Descriptor::describeBool instead

Definition at line 245 of file parametersettable.cpp.

References ConfigurationParameters::createGroup(), ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().

Member Function Documentation

ParameterSettable::BoolDescriptor & def ( bool  defaultValue)

set the default value when the parameter is not present into the configuration

Definition at line 252 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().

ParameterSettable::BoolDescriptor & help ( QString  shortHelp,
QString  longHelp = QString("") 
)

Add a short help comment and a complete help comment.

The short help comment is typically used as a tooltip help, while the complete help comment will be shown in the help section for the type

Parameters
shortHelpis the short comment (rich text here is not allowed)
longHelpis the long help (rich text here is allowed); if not specified the longHelp will be the same of the shortHelp

Definition at line 262 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().

ParameterSettable::BoolDescriptor & props ( Properties  properties)

set the Properties of this parameter (see Property documentation)

Definition at line 257 of file parametersettable.cpp.

References Factory::getTypeDescriptions().

BoolDescriptor& runtime ( void(T::*)(bool)  setter,
bool(T::*)() const  getter 
)
inline

set the runtime accessors for this parameter

When a parameter is marked as runtime, it means that the value of the parameter can be changed in any moment using the setRuntimeParameter method bypassing the configure method.

Parameters
setteris the pointer-to-member to the method used for setting the value of the parameter; it must accept one bool argument and return void
getteris the pointer-to-member to the method used for getting the value of the parameter; it must accept no arguments and return bool

Definition at line 397 of file parametersettable.h.


The documentation for this class was generated from the following files: