libecs-cpp 2.1.0
Entity Component System library in C++
Loading...
Searching...
No Matches
Uuid.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3#include <string>
4
5namespace ecs
6{
13 class Uuid
14 {
15 public:
25
34 Uuid(const std::string &id);
35
39 std::string Get() const;
40
41 private:
42 std::uint64_t high = 0;
43 std::uint64_t low = 0;
44 };
45}
A 128-bit random identifier in the standard version 4 text form (for example "550e8400-e29b-41d4-a716...
Definition Uuid.hpp:14
std::string Get() const
Returns the canonical lowercase 36-character text form.
Uuid()
Generates a new random identifier.
Uuid(const std::string &id)
Parses the canonical 36-character text form, in either letter case and of any version.
Definition Clock.hpp:10