diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-06-25 20:03:39 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-06-25 20:03:39 +0000 |
commit | e231a34727bcba53ac093fc8f3e4062322fb7fc4 (patch) | |
tree | df4ea1979a2fa78410f9375ad4eb56a4ca22216b /src/unstable/uuid.cpp | |
parent | 2d6f5f0903bd97a38056a65431b07bb7baf5039a (diff) | |
download | libbu++-e231a34727bcba53ac093fc8f3e4062322fb7fc4.tar.gz libbu++-e231a34727bcba53ac093fc8f3e4062322fb7fc4.tar.bz2 libbu++-e231a34727bcba53ac093fc8f3e4062322fb7fc4.tar.xz libbu++-e231a34727bcba53ac093fc8f3e4062322fb7fc4.zip |
Bu::Uuid has some more features for niceness. It's easier to set them from
strings and you can archive them.
Diffstat (limited to '')
-rw-r--r-- | src/unstable/uuid.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp index c76bb15..41a35c2 100644 --- a/src/unstable/uuid.cpp +++ b/src/unstable/uuid.cpp | |||
@@ -139,3 +139,15 @@ template<> bool Bu::__cmpHashKeys<Bu::Uuid>( const Bu::Uuid &a, const Bu::Uuid & | |||
139 | return a == b; | 139 | return a == b; |
140 | } | 140 | } |
141 | 141 | ||
142 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, Uuid &u ) | ||
143 | { | ||
144 | ar.read( u.data, 16 ); | ||
145 | return ar; | ||
146 | } | ||
147 | |||
148 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, const Uuid &u ) | ||
149 | { | ||
150 | ar.write( u.data, 16 ); | ||
151 | return ar; | ||
152 | } | ||
153 | |||