10 #include <OpenMS/OpenMSConfig.h>
102 operator std::
string() const;
109 operator std::vector<std::
string>() const;
116 operator std::vector<
int>() const;
123 operator std::vector<
double>() const;
132 operator
long double() const;
141 operator
double() const;
150 operator
float() const;
159 operator
short int() const;
168 operator
unsigned short int() const;
178 operator
int() const;
187 operator
unsigned int() const;
196 operator
long int() const;
205 operator
unsigned long int() const;
214 operator
long long() const;
223 operator
unsigned long long() const;
240 const
char* toChar() const;
248 std::
string toString(
bool full_precision = true) const;
255 std::vector<std::
string> toStringVector() const;
262 std::vector<
int> toIntVector() const;
269 std::vector<
double> toDoubleVector() const;
326 return value_type_ == EMPTY_VALUE;
355 std::vector<std::string>* str_list_;
356 std::vector<int>* int_list_;
357 std::vector<double>* dou_list_;
368 static std::
string doubleToString(
double value,
bool full_precision = true);
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:29
ValueType value_type_
Type of the currently stored value.
Definition: ParamValue.h:347
friend bool operator==(const ParamValue &, const ParamValue &)
Equality comparator.
ParamValue(const ParamValue &)
Copy constructor.
friend std::ostream & operator<<(std::ostream &, const ParamValue &)
output stream operator
void clear_() noexcept
Clears the current state of the ParamValue and release every used memory.
friend bool operator!=(const ParamValue &, const ParamValue &)
Equality comparator.
bool isEmpty() const
Test if the value is empty.
Definition: ParamValue.h:324
friend bool operator>(const ParamValue &, const ParamValue &)
Greater than comparator (for vectors we use the size)
ValueType
Supported types for ParamValue.
Definition: ParamValue.h:38
@ DOUBLE_VALUE
double value
Definition: ParamValue.h:41
@ INT_LIST
integer vector
Definition: ParamValue.h:43
@ STRING_VALUE
string value
Definition: ParamValue.h:39
@ STRING_LIST
string vector
Definition: ParamValue.h:42
@ INT_VALUE
integer value
Definition: ParamValue.h:40
@ DOUBLE_LIST
double vector
Definition: ParamValue.h:44
friend bool operator<(const ParamValue &, const ParamValue &)
Smaller than comparator (for vectors we use the size)
ParamValue(ParamValue &&) noexcept
Move constructor.
static const ParamValue EMPTY
Empty data value for comparisons.
Definition: ParamValue.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
const std::string & toString(const DriftTimeUnit value)