From b9203ee84953006547f4afd58f405874c87bf0dc Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:02:17 +0200 Subject: 3.1 --- shared/guid.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared/guid.h (limited to 'shared/guid.h') 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 +#include + +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 pData; +}; + +} + + +#endif // GUID_H_INCLUDED -- cgit