12#include <OpenMS/config.h>
53 class OPENMS_DLLAPI
USI
82 const String& interpretation =
"");
108 USI& operator=(
USI&&) noexcept = default;
114 bool operator==(const
USI& rhs) const;
117 bool operator!=(const
USI& rhs) const;
120 bool operator<(const
USI& rhs) const;
132 bool isValid() const;
142 static
bool isValidUSI(const
String& usi_string);
174 void setCollection(const
String& collection);
198 void setInterpretation(const
String& interpretation);
201 bool hasInterpretation() const;
219 bool fromString(const
String& usi_string);
236 static
USI createFromScanNumber(const
String& dataset_id,
239 const
String& interpretation = "");
262 static
std::optional<
int> extractScanNumberFromNativeID(const
String& native_id);
321 OPENMS_DLLAPI
std::ostream& operator<<(
std::ostream& os, const
USI& usi);
A more convenient string class.
Definition String.h:34
Utility class for handling Universal Spectrum Identifiers (USI).
Definition USI.h:54
IndexType
Supported index types in USI.
Definition USI.h:58
USI(const String &usi_string)
Construct a USI from its string representation.
USI()
Default constructor (creates an empty/invalid USI)
USI(const String &collection, const String &ms_run, IndexType index_type, const String &index, const String &interpretation="")
Construct a USI from its components.
USI(USI &&) noexcept=default
Move constructor.
USI(const USI &)=default
Copy constructor.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19