ParameterSettable::IntDescriptor Class Reference

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

List of all members.

Public Member Functions

 IntDescriptor (QString paramPath)
 Add (if not exists) the description of a Int parameter.
IntDescriptordef (int defaultValue)
 set the default value when the parameter is not present into the configuration
IntDescriptorhelp (QString shortHelp, QString longHelp=QString(""))
 Add a short help comment and a complete help comment.
IntDescriptorlimits (int lower_bound, int upper_bound)
 set the lower and the upper bounds for the parameter's value If you don't want to limit the lower_bound, specify MinInteger.
IntDescriptorprops (Properties properties)
 set the Properties of this parameter (see Property documentation)

Detailed Description

Utility Class for customize the description of Integer parameter.

Definition at line 321 of file parametersettable.h.


Constructor & Destructor Documentation

IntDescriptor ( QString  paramPath)

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

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

Definition at line 211 of file parametersettable.cpp.

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


Member Function Documentation

ParameterSettable::IntDescriptor & def ( int  defaultValue)

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

Definition at line 218 of file parametersettable.cpp.

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

ParameterSettable::IntDescriptor & 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 239 of file parametersettable.cpp.

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

ParameterSettable::IntDescriptor & limits ( int  lower_bound,
int  upper_bound 
)

set the lower and the upper bounds for the parameter's value If you don't want to limit the lower_bound, specify MinInteger.

If you don't want to limit the upper_bound, specify MaxInteger.

Parameters:
lower_boundis the minimum number allowed for the parameter
upper_boundis the maximum number allowed for the parameter

Definition at line 228 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), Factory::getTypeDescriptions(), ParameterSettable::MaxInteger, and ParameterSettable::MinInteger.

ParameterSettable::IntDescriptor & props ( Properties  properties)

set the Properties of this parameter (see Property documentation)

Definition at line 223 of file parametersettable.cpp.

References Factory::getTypeDescriptions().


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