ParameterSettableInConstructor Class Reference
The base for classes that can be configured using a ConfigurationParameters object passed to the constructor. More...
Inheritance diagram for ParameterSettableInConstructor:
Public Member Functions | |
ParameterSettableInConstructor () | |
Constructor. More... | |
ParameterSettableInConstructor (ConfigurationParameters &, QString) | |
Constructor. More... | |
virtual | ~ParameterSettableInConstructor () |
Destructor. More... | |
Public Member Functions inherited from ParameterSettable | |
ParameterSettable () | |
Constructor. More... | |
virtual | ~ParameterSettable () |
Destructor. More... | |
void | addObserver (RuntimeParameterObserver *obs) |
add a RuntimeParameterObserver to this object More... | |
template<class T > | |
T | getRuntimeParameter (QString paramName) |
return the value of the object's parameter previously marked as runtime modifiable More... | |
virtual ParameterSettableUI * | getUIManager () |
Return an instance of the ParameterSettableUI class that handle the viewers for the GUI. More... | |
virtual void | postConfigureInitialization () |
This function is called after all linked objects have been configured. More... | |
void | removeObserver (RuntimeParameterObserver *obs) |
remove the RuntimeParameterObserver to this object More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix)=0 |
Saves the actual status of parameters into the ConfigurationParameters object passed. More... | |
template<class T > | |
void | setRuntimeParameter (QString paramName, T newvalue) |
set the value of the object's parameter previously marked as runtime modifiable More... | |
QString | typeName () const |
return the type name of this object More... | |
Additional Inherited Members | |
Public Types inherited from ParameterSettable | |
enum | Property { Default = 0x0000, IsList = 0x0001, IsMandatory = 0x0002, AllowMultiple = 0x0004 } |
this enum is used to describe the properties of a parameter or a subgroup in a type description More... | |
Static Public Member Functions inherited from ParameterSettable | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. More... | |
static QString | fullParameterDescriptionPath (QString type, QString param) |
helper function for creating the full path to a parameter description More... | |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
helper function for creating the full path to a subgroup description More... | |
Static Public Attributes inherited from ParameterSettable | |
static const double | Infinity = std::numeric_limits<double>::infinity() |
Shortcut variable for indicate an infinity double number. More... | |
static const int | MaxInteger = std::numeric_limits<int>::max() |
Shortcut variable for indicate the maximum int value allowed. More... | |
static const int | MinInteger = std::numeric_limits<int>::min() |
Shortcut variable for indicate the minimum int value allowed. More... | |
Protected Member Functions inherited from ParameterSettable | |
void | notifyChangesToParam (QString paramName) |
notify observers about a changing to a runtime parameter More... | |
Static Protected Member Functions inherited from ParameterSettable | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
Add an entry for the type into the descriptions of all available types. More... | |
template<class EditorType > | |
static void | setGraphicalEditor (QString type) |
Sets the graphical editor for this ParameterSettable This method sets the editor (a subclass of ConfigurationWidget) to use to modify the values of the parameters of this group (and possibly of subgroups, if the editor supports this) More... | |
Detailed Description
The base for classes that can be configured using a ConfigurationParameters object passed to the constructor.
- Warning
- All classes that have ParameterSettable as an ancestor should be only created and configured using ConfigurationParameters. Calling configure() or postConfigureInitialization() by hand is highly discouraged (you could experience strange problems...)
Definition at line 741 of file parametersettable.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
This is here to allow child classes to be constructed even without a configuration parameter object
Definition at line 750 of file parametersettable.h.
|
inline |
Constructor.
Parameters are here just to remind the user of this class that you need a ConfigurationParameters and a prefix as parameters for the constructor to build an object of this kind
- Parameters
-
params the configuration parameters object with parameters to use prefix the prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one
Definition at line 767 of file parametersettable.h.
|
inlinevirtual |
Destructor.
Definition at line 774 of file parametersettable.h.
The documentation for this class was generated from the following file:
- configuration/include/parametersettable.h