![]() |
OpenMS
|
Struct that captures all information of a command line parameter. More...
#include <OpenMS/APPLICATIONS/ParameterInformation.h>
Public Types | |
| enum | ParameterTypes { NONE = 0 , STRING , INPUT_FILE , OUTPUT_FILE , OUTPUT_PREFIX , OUTPUT_DIR , DOUBLE , INT , STRINGLIST , INTLIST , DOUBLELIST , INPUT_FILE_LIST , OUTPUT_FILE_LIST , FLAG , TEXT , NEWLINE } |
| Parameter types. More... | |
Public Attributes | |
| std::string | name |
| name of the parameter (internal and external) | |
| ParameterTypes | type |
| type of the parameter | |
| ParamValue | default_value |
| default value of the parameter stored as string | |
| std::string | description |
| description of the parameter | |
| std::string | argument |
| argument in the description | |
| bool | required |
| flag that indicates if this parameter is required i.e. it must differ from the default value | |
| bool | advanced |
| flag the indicates that the parameter is advanced (this is used for writing the INI file only) | |
| StringList | tags |
| StringList for special tags. | |
Restrictions for different parameter types | |
| StringList | valid_strings |
| Int | min_int |
| Int | max_int |
| double | min_float |
| double | max_float |
| ParameterInformation (const std::string &n, ParameterTypes t, const std::string &arg, const ParamValue &def, const std::string &desc, bool req, bool adv, const StringList &tag_values=StringList()) | |
| Constructor that takes all members in declaration order. | |
| ParameterInformation () | |
| ParameterInformation (const ParameterInformation &rhs)=default | |
| ParameterInformation & | operator= (const ParameterInformation &rhs) |
Struct that captures all information of a command line parameter.
| enum ParameterTypes |
Parameter types.
| ParameterInformation | ( | const std::string & | n, |
| ParameterTypes | t, | ||
| const std::string & | arg, | ||
| const ParamValue & | def, | ||
| const std::string & | desc, | ||
| bool | req, | ||
| bool | adv, | ||
| const StringList & | tag_values = StringList() |
||
| ) |
Constructor that takes all members in declaration order.
|
default |
| ParameterInformation & operator= | ( | const ParameterInformation & | rhs | ) |
| bool advanced |
flag the indicates that the parameter is advanced (this is used for writing the INI file only)
| std::string argument |
argument in the description
| ParamValue default_value |
default value of the parameter stored as string
| std::string description |
description of the parameter
| double max_float |
| Int max_int |
| double min_float |
| Int min_int |
| std::string name |
name of the parameter (internal and external)
| bool required |
flag that indicates if this parameter is required i.e. it must differ from the default value
| StringList tags |
StringList for special tags.
| ParameterTypes type |
type of the parameter
| StringList valid_strings |