OpenMS
Loading...
Searching...
No Matches
UniqueIdGenerator.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: $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12#include <string>
13
14
15namespace OpenMS
16{
17
37class OPENMS_DLLAPI UniqueIdGenerator
38{
39
40public:
43
50 static std::string getUUID();
51
57 static void setSeed(UInt64 seed);
58
60 static UInt64 getSeed();
61
62protected:
65
66private:
67 UniqueIdGenerator(const UniqueIdGenerator&); // protect from c++ auto-generation
68};
69
70} // namespace OpenMS
A generator for unique ids.
Definition UniqueIdGenerator.h:38
static UInt64 getSeed()
Get the seed.
static UInt64 getUniqueId()
Returns a new, nonzero unique id.
static void setSeed(UInt64 seed)
Reseed the shared generator.
static std::string getUUID()
Returns a new random UUID (version 4)
UniqueIdGenerator(const UniqueIdGenerator &)
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19