summaryrefslogtreecommitdiff
path: root/shared/guid.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/guid.h')
-rw-r--r--shared/guid.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/shared/guid.h b/shared/guid.h
new file mode 100644
index 00000000..b2718d7f
--- /dev/null
+++ b/shared/guid.h
@@ -0,0 +1,28 @@
+#ifndef GUID_H_INCLUDED
+#define GUID_H_INCLUDED
+
+#include <wx/stream.h>
+#include <boost/shared_ptr.hpp>
+
+namespace Utility
+{
+class UniqueId
+{
+public:
+ UniqueId(); //create UUID
+
+ UniqueId(wxInputStream& stream); //read
+ void toStream(wxOutputStream& stream) const; //write
+
+ bool operator==(const UniqueId rhs) const;
+ bool operator<(const UniqueId rhs) const;
+
+private:
+ struct IntData;
+ boost::shared_ptr<IntData> pData;
+};
+
+}
+
+
+#endif // GUID_H_INCLUDED
bgstack15