OpenMS
Loading...
Searching...
No Matches
ParameterInformation.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Marc Sturm, Clemens Groepl $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15namespace OpenMS
16{
17
80
81} // namespace
82
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition ParamValue.h:31
int Int
Signed integer type.
Definition Types.h:72
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Struct that captures all information of a command line parameter.
Definition ParameterInformation.h:22
ParameterTypes type
type of the parameter
Definition ParameterInformation.h:47
ParamValue default_value
default value of the parameter stored as string
Definition ParameterInformation.h:49
double max_float
Definition ParameterInformation.h:67
std::string description
description of the parameter
Definition ParameterInformation.h:51
ParameterInformation(const ParameterInformation &rhs)=default
ParameterInformation & operator=(const ParameterInformation &rhs)
StringList tags
StringList for special tags.
Definition ParameterInformation.h:59
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.
bool required
flag that indicates if this parameter is required i.e. it must differ from the default value
Definition ParameterInformation.h:55
double min_float
Definition ParameterInformation.h:66
std::string name
name of the parameter (internal and external)
Definition ParameterInformation.h:45
Int min_int
Definition ParameterInformation.h:64
bool advanced
flag the indicates that the parameter is advanced (this is used for writing the INI file only)
Definition ParameterInformation.h:57
StringList valid_strings
Definition ParameterInformation.h:63
ParameterTypes
Parameter types.
Definition ParameterInformation.h:25
@ INTLIST
More than one Integer Parameter.
Definition ParameterInformation.h:35
@ OUTPUT_PREFIX
std::string parameter that denotes an output file prefix
Definition ParameterInformation.h:30
@ OUTPUT_FILE
std::string parameter that denotes an output file
Definition ParameterInformation.h:29
@ DOUBLE
Floating point number parameter.
Definition ParameterInformation.h:32
@ FLAG
Parameter without argument.
Definition ParameterInformation.h:39
@ OUTPUT_FILE_LIST
More than one std::string Parameter that denotes output files.
Definition ParameterInformation.h:38
@ INPUT_FILE
std::string parameter that denotes an input file
Definition ParameterInformation.h:28
@ TEXT
Left aligned text, see addText_.
Definition ParameterInformation.h:40
@ STRINGLIST
More than one std::string Parameter.
Definition ParameterInformation.h:34
@ STRING
std::string parameter
Definition ParameterInformation.h:27
@ INPUT_FILE_LIST
More than one std::string Parameter that denotes input files.
Definition ParameterInformation.h:37
@ DOUBLELIST
More than one std::string Parameter.
Definition ParameterInformation.h:36
@ INT
Integer parameter.
Definition ParameterInformation.h:33
@ OUTPUT_DIR
std::string parameter that denotes an output directory
Definition ParameterInformation.h:31
Int max_int
Definition ParameterInformation.h:65
std::string argument
argument in the description
Definition ParameterInformation.h:53