summaryrefslogtreecommitdiff
path: root/include/erebos/uuid.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-03-18 22:53:40 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2020-03-23 21:37:30 +0100
commit627d135bf5108f514161e1d37acf6b97c4b3c4a3 (patch)
tree601b2560bb484aedbe51f25a6da3beeae62a78fc /include/erebos/uuid.h
parent29ade9784fe65ecd686b5e8e18d84e6acc30b37a (diff)
Move UUID and time definitions to separate modules
Diffstat (limited to 'include/erebos/uuid.h')
-rw-r--r--include/erebos/uuid.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/erebos/uuid.h b/include/erebos/uuid.h
new file mode 100644
index 0000000..31322ea
--- /dev/null
+++ b/include/erebos/uuid.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <uuid/uuid.h>
+
+#include <string>
+
+namespace erebos {
+
+struct UUID
+{
+ explicit UUID(std::string);
+ explicit operator std::string() const;
+
+ bool operator==(const UUID &) const;
+ bool operator!=(const UUID &) const;
+
+ uuid_t uuid;
+};
+
+}