#include <qgarlib/QgarAppParamDescr.H>
Definition at line 67 of file QgarAppParamDescr.H.
Public Types | |
| enum | ParamPassing { QGE_IN, QGE_OUT, QGE_INOUT } |
| The parameters passing methods. More... | |
| enum | ParamType { QGE_UNKNOWN_TYPE, QGE_NUM, QGE_IMAGE } |
| The parameters types. More... | |
| enum | ParamFormat { QGE_UNKNOWN_FORMAT, QGE_PBM, QGE_PPM, QGE_PGM, QGE_DXF, QGE_SVG, QGE_INT, QGE_REAL } |
| The parameters formats. More... | |
Public Member Functions | |
Constructors | |
| QgarAppParamDescr () | |
| Builds an empty parameter description. | |
| QgarAppParamDescr (const std::string &name, const std::string &flag, bool required, ParamPassing passingMode, ParamType type, ParamFormat format, const std::string &briefDoc, const std::string &longDoc, const std::string &defaultValue="", const std::string &minValue="", const std::string &maxValue="") | |
| Creates a parameter description from a full set of parameter data. | |
| QgarAppParamDescr (const QgarAppParamDescr &) | |
| Copy constructor. | |
Destructors | |
| virtual | ~QgarAppParamDescr () |
| Destructor. | |
Access | |
| std::string | name () const |
| Retrieve the name of the parameter. | |
| std::string | flag () const |
| Retrieve the flag introducing the parameter on the command line. | |
| bool | required () const |
| Query if the parameter is required. | |
| ParamPassing | passingMode () const |
| Retrieve the parameter passing mode. | |
| ParamType | type () const |
| Retrieve the parameter type. | |
| ParamFormat | format () const |
| Retrieve the parameter format. | |
| std::string | defaultValue () const |
| Retrieve the parameter default value. | |
| std::string | minValue () const |
| Retrieve the parameter minimum value. | |
| std::string | maxValue () const |
| Retrieve the parameter maximum value. | |
| std::string | briefDoc () const |
| Retrieve the parameter brief documentation. | |
| std::string | longDoc () const |
| Retrieve the parameter detailed documentation. | |
Transformation | |
| void | setName (const std::string &name) |
| Sets the parameter name. | |
| void | setFlag (const std::string &flag) |
| Sets the parameter introducing flag. | |
| void | setRequired (bool required) |
| Sets if the parameter is mandatory. | |
| void | setPassingMode (ParamPassing passingMode) |
| Sets the parameter passing mode. | |
| void | setType (ParamType type) |
| Sets the parameter type. | |
| void | setFormat (ParamFormat format) |
| Sets the parameter format. | |
| void | setDefaultValue (const std::string &val) |
| Sets the parameter default value. | |
| void | setMinValue (const std::string &val) |
| Sets the parameter minimum value. | |
| void | setMaxValue (const std::string &val) |
| Sets the parameter maximum value. | |
| void | setBriefDoc (const std::string &briefDoc) |
| Sets the brief documentation for the parameter. | |
| void | setLongDoc (const std::string &longDoc) |
| Sets the detailed documentation for the parameter. | |
Operators | |
| QgarAppParamDescr & | operator= (const QgarAppParamDescr &) |
| Assignment operator. | |
Protected Attributes | |
| std::string | _name |
| The name of the parameter. | |
| std::string | _flag |
| The flag introducing this parameter on the command line invoking the application. | |
| bool | _required |
| Flag indicating if the parameter is required or optional. | |
| ParamPassing | _passingMode |
| The passing mode for this parameter. | |
| ParamType | _type |
| The type of this parameter. | |
| ParamFormat | _format |
| The format of this parameter. | |
| std::string | _briefDoc |
| The brief documentation for this parameter. | |
| std::string | _longDoc |
| The long documentation for this parameter. | |
| std::string | _defaultValue |
| The default value for this parameter (if any). | |
| std::string | _minValue |
| The minimum value for this parameter (if any). | |
| std::string | _maxValue |
| The max value for this parameter (if any). | |
|
|
The parameters formats.
Definition at line 130 of file QgarAppParamDescr.H. |
|
|
The parameters passing methods.
Definition at line 78 of file QgarAppParamDescr.H. |
|
|
The parameters types.
Definition at line 106 of file QgarAppParamDescr.H. |
|
|
Builds an empty parameter description. The created description cannot be used as is. Its members must be updated using the class setters. Definition at line 62 of file QgarAppParamDescr.C. |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Creates a parameter description from a full set of parameter data.
|
|
|
Copy constructor.
Definition at line 107 of file QgarAppParamDescr.C. |
|
|
Destructor.
Definition at line 130 of file QgarAppParamDescr.C. |
|
|
Retrieve the parameter brief documentation.
Definition at line 189 of file QgarAppParamDescr.C. References _briefDoc. |
|
|
Retrieve the parameter default value.
Definition at line 205 of file QgarAppParamDescr.C. References _defaultValue. |
|
|
Retrieve the flag introducing the parameter on the command line.
Definition at line 149 of file QgarAppParamDescr.C. References _flag. |
|
|
Retrieve the parameter format.
Definition at line 181 of file QgarAppParamDescr.C. References _format. |
|
|
Retrieve the parameter detailed documentation.
Definition at line 197 of file QgarAppParamDescr.C. References _longDoc. |
|
|
Retrieve the parameter maximum value.
Definition at line 221 of file QgarAppParamDescr.C. References _maxValue. |
|
|
Retrieve the parameter minimum value.
Definition at line 213 of file QgarAppParamDescr.C. References _minValue. |
|
|
Retrieve the name of the parameter.
Definition at line 141 of file QgarAppParamDescr.C. References _name. |
|
|
Assignment operator.
Definition at line 323 of file QgarAppParamDescr.C. References _briefDoc, _flag, _format, _longDoc, _name, _passingMode, _required, and _type. |
|
|
Retrieve the parameter passing mode.
Definition at line 165 of file QgarAppParamDescr.C. References _passingMode. |
|
|
Query if the parameter is required.
Definition at line 157 of file QgarAppParamDescr.C. References _required. |
|
|
Sets the brief documentation for the parameter.
|
|
|
Sets the parameter default value.
|
|
|
Sets the parameter introducing flag.
|
|
|
Sets the parameter format.
Definition at line 271 of file QgarAppParamDescr.C. References _format. |
|
|
Sets the detailed documentation for the parameter.
|
|
|
Sets the parameter maximum value.
|
|
|
Sets the parameter minimum value.
|
|
|
Sets the parameter name.
|
|
|
Sets the parameter passing mode.
Definition at line 255 of file QgarAppParamDescr.C. References _passingMode. |
|
|
Sets if the parameter is mandatory.
Definition at line 247 of file QgarAppParamDescr.C. References _required. |
|
|
Sets the parameter type.
Definition at line 263 of file QgarAppParamDescr.C. References _type. |
|
|
Retrieve the parameter type.
Definition at line 173 of file QgarAppParamDescr.C. References _type. |
|
|
The brief documentation for this parameter.
Definition at line 446 of file QgarAppParamDescr.H. Referenced by briefDoc(), and operator=(). |
|
|
The default value for this parameter (if any).
Definition at line 452 of file QgarAppParamDescr.H. Referenced by defaultValue(). |
|
|
The flag introducing this parameter on the command line invoking the application.
Definition at line 431 of file QgarAppParamDescr.H. Referenced by flag(), and operator=(). |
|
|
The format of this parameter.
Definition at line 443 of file QgarAppParamDescr.H. Referenced by format(), operator=(), and setFormat(). |
|
|
The long documentation for this parameter.
Definition at line 449 of file QgarAppParamDescr.H. Referenced by longDoc(), and operator=(). |
|
|
The max value for this parameter (if any).
Definition at line 458 of file QgarAppParamDescr.H. Referenced by maxValue(). |
|
|
The minimum value for this parameter (if any).
Definition at line 455 of file QgarAppParamDescr.H. Referenced by minValue(). |
|
|
The name of the parameter.
Definition at line 425 of file QgarAppParamDescr.H. Referenced by name(), and operator=(). |
|
|
The passing mode for this parameter.
Definition at line 437 of file QgarAppParamDescr.H. Referenced by operator=(), passingMode(), and setPassingMode(). |
|
|
Flag indicating if the parameter is required or optional.
Definition at line 434 of file QgarAppParamDescr.H. Referenced by operator=(), required(), and setRequired(). |
|
|
The type of this parameter.
Definition at line 440 of file QgarAppParamDescr.H. Referenced by operator=(), setType(), and type(). |