This class defines a named value with long and short name, with default parameter and description.
More...
This class defines a named value with long and short name, with default parameter and description.
◆ Parameter()
Ocean::CommandArguments::Parameter::Parameter |
( |
const std::string & |
longName, |
|
|
const std::string & |
shortName, |
|
|
const std::string & |
description, |
|
|
const Value & |
defaultValue |
|
) |
| |
Creates a new parameter object.
- Parameters
-
longName | The long name of the parameter, must be valid |
shortName | The short name of the parameter, can be empty |
description | The optional description of the parameter, can be empty |
defaultValue | The optional default value, invalid otherwise |
◆ defaultValue()
const Value & Ocean::CommandArguments::Parameter::defaultValue |
( |
| ) |
const |
|
inline |
Returns the default value of this parameter.
- Returns
- The parameter's default name, can be invalid
◆ description()
const std::string & Ocean::CommandArguments::Parameter::description |
( |
| ) |
const |
|
inline |
Returns the description of this parameter.
- Returns
- The parameter's description
◆ longName()
const std::string & Ocean::CommandArguments::Parameter::longName |
( |
| ) |
const |
|
inline |
Returns the long name of this parameter.
- Returns
- The parameter's long name
◆ shortName()
const std::string & Ocean::CommandArguments::Parameter::shortName |
( |
| ) |
const |
|
inline |
Returns the short name of this parameter.
- Returns
- The parameter's short name, can be empty
◆ defaultValue_
Value Ocean::CommandArguments::Parameter::defaultValue_ |
|
protected |
The default value of this parameter, can be invalid.
◆ description_
std::string Ocean::CommandArguments::Parameter::description_ |
|
protected |
The description of this parameter, can be empty.
◆ longName_
std::string Ocean::CommandArguments::Parameter::longName_ |
|
protected |
The long name of the parameter.
◆ shortName_
std::string Ocean::CommandArguments::Parameter::shortName_ |
|
protected |
The short name of the parameter, can be empty.
The documentation for this class was generated from the following file: