summaryrefslogtreecommitdiff
path: root/shared/guid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
commitb9203ee84953006547f4afd58f405874c87bf0dc (patch)
tree9e41f1533f120e9268e86658c52458630ffd718a /shared/guid.h
parent3.0 (diff)
downloadFreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip
3.1
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