diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
commit | b9203ee84953006547f4afd58f405874c87bf0dc (patch) | |
tree | 9e41f1533f120e9268e86658c52458630ffd718a /shared/guid.h | |
parent | 3.0 (diff) | |
download | FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2 FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip |
3.1
Diffstat (limited to 'shared/guid.h')
-rw-r--r-- | shared/guid.h | 28 |
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 |