15 #include <OpenMS/OpenMSConfig.h>
54 static const std::string NamesOfDataType[SIZE_OF_DATATYPE];
129 operator std::
string() const;
159 operator
long double() const;
168 operator
double() const;
177 operator
float() const;
186 operator
short int() const;
195 operator
unsigned short int() const;
205 operator
int() const;
214 operator
unsigned int() const;
223 operator
long int() const;
232 operator
unsigned long int() const;
241 operator
long long() const;
250 operator
unsigned long long() const;
267 const
char* toChar() const;
364 return value_type_ == EMPTY_VALUE;
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:33
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:38
friend std::ostream & operator<<(std::ostream &, const DataValue &)
output stream operator
void setUnitType(const UnitType &u)
Definition: DataValue.h:377
UnitType
Supported types for DataValue.
Definition: DataValue.h:58
@ MS_ONTOLOGY
ms.ontology MS
Definition: DataValue.h:60
@ UNIT_ONTOLOGY
unit.ontology UO
Definition: DataValue.h:59
int32_t unit_
The unit of the data value (if it has one) using UO identifier, otherwise -1.
Definition: DataValue.h:420
DataValue(const DataValue &)
Copy constructor.
friend bool operator>(const DataValue &, const DataValue &)
Greater than comparator (for lists we use the size)
DataType
Supported types for DataValue.
Definition: DataValue.h:42
@ DOUBLE_VALUE
double value
Definition: DataValue.h:45
@ EMPTY_VALUE
empty
Definition: DataValue.h:49
@ INT_LIST
integer list
Definition: DataValue.h:47
@ STRING_VALUE
string value
Definition: DataValue.h:43
@ STRING_LIST
string list
Definition: DataValue.h:46
@ INT_VALUE
integer value
Definition: DataValue.h:44
@ DOUBLE_LIST
double list
Definition: DataValue.h:48
friend bool operator<(const DataValue &, const DataValue &)
Smaller than comparator (for lists we use the size)
void setUnit(const int32_t &unit)
Sets the unit to the given String.
const int32_t & getUnit() const
Return the unit associated to this DataValue.
friend bool operator==(const DataValue &, const DataValue &)
Equality comparator.
UnitType unit_type_
Type of the currently stored unit.
Definition: DataValue.h:417
UnitType getUnitType() const
returns the type of value stored
Definition: DataValue.h:372
void clear_() noexcept
Clears the current state of the DataValue and release every used memory.
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:383
DataValue(DataValue &&) noexcept
Move constructor.
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:362
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:414
friend bool operator!=(const DataValue &, const DataValue &)
Equality comparator.
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:29
A more convenient string class.
Definition: String.h:34
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:104
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:29
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:36
static QString toQString(const String &this_s)
Definition: StringUtils.h:196
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
const std::string & toString(const DriftTimeUnit value)