#include <berryParameterization.h>
A parameter with a specific value. This is usually a part of a ParameterizedCommand
, which is used to refer to a command with a collection of parameterizations.
- Since
- 3.1
Definition at line 36 of file berryParameterization.h.
◆ Parameterization() [1/2]
berry::Parameterization::Parameterization |
( |
const SmartPointer< const IParameter > |
parameter, |
|
|
const QString & |
value |
|
) |
| |
Constructs a new instance of Parameterization
.
- Parameters
-
parameter | The parameter that is being parameterized; must not be null . |
value | The value for the parameter; may be null . |
◆ Parameterization() [2/2]
◆ GetParameter()
Returns the parameter that is being parameterized.
- Returns
- The parameter; never
null
.
◆ GetValue()
QString berry::Parameterization::GetValue |
( |
| ) |
const |
Returns the value for the parameter in this parameterization.
- Returns
- The value; may be
null
.
◆ GetValueName()
QString berry::Parameterization::GetValueName |
( |
| ) |
const |
Returns the human-readable name for the current value, if any. If the name cannot be found, then it simply returns the value. It also ensures that any null
values are converted into an empty string.
- Returns
- The human-readable name of the value; never
null
.
- Exceptions
-
ParameterValuesException | If the parameter needed to be initialized, but couldn't be. |
◆ HashCode()
uint berry::Parameterization::HashCode |
( |
| ) |
const |
◆ operator bool()
berry::Parameterization::operator bool |
( |
| ) |
const |
◆ operator=()
◆ operator==()
bool berry::Parameterization::operator== |
( |
const Parameterization & |
parameterization | ) |
const |
The documentation for this class was generated from the following file: