src/basics.h

changeset 1440
265b2e95a8e8
parent 1433
bd3a9e237ef5
--- a/src/basics.h	Fri Dec 28 00:03:47 2018 +0200
+++ b/src/basics.h	Thu Jun 20 08:54:35 2019 +0300
@@ -46,6 +46,22 @@
 
 class LDObject;
 
+class Uuid
+{
+public:
+	constexpr Uuid() : a{0}, b{0} {}
+	Uuid(Uuid&&) = default;
+	Uuid(const Uuid&) = default;
+	QString toString() const;
+	Uuid& operator++();
+
+private:
+	quint64 a;
+	quint64 b;
+};
+
+constexpr Uuid NULL_UUID = {};
+
 enum Axis
 {
 	X,

mercurial