aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/uuid.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2013-03-12 05:26:44 +0000
committerMike Buland <eichlan@xagasoft.com>2013-03-12 05:26:44 +0000
commita7c44a1356a8ee1384d70dd98941e00c89ec2702 (patch)
tree70107f8cc7517c390f8d215abd24c5dc707580c1 /src/unstable/uuid.cpp
parent9700147ab5adaf28eecf931a9c7c096918baaf73 (diff)
downloadlibbu++-a7c44a1356a8ee1384d70dd98941e00c89ec2702.tar.gz
libbu++-a7c44a1356a8ee1384d70dd98941e00c89ec2702.tar.bz2
libbu++-a7c44a1356a8ee1384d70dd98941e00c89ec2702.tar.xz
libbu++-a7c44a1356a8ee1384d70dd98941e00c89ec2702.zip
Bu::Uuid now supports being formatted, it uses the standard toString() method.
The new cache is really coming along now.
Diffstat (limited to 'src/unstable/uuid.cpp')
-rw-r--r--src/unstable/uuid.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp
index 06e8c01..a93f713 100644
--- a/src/unstable/uuid.cpp
+++ b/src/unstable/uuid.cpp
@@ -160,15 +160,20 @@ template<> bool Bu::__cmpHashKeys<Bu::Uuid>( const Bu::Uuid &a, const Bu::Uuid &
160 return a == b; 160 return a == b;
161} 161}
162 162
163Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, Uuid &u ) 163Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, Bu::Uuid &u )
164{ 164{
165 ar.read( u.data, 16 ); 165 ar.read( u.data, 16 );
166 return ar; 166 return ar;
167} 167}
168 168
169Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, const Uuid &u ) 169Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, const Bu::Uuid &u )
170{ 170{
171 ar.write( u.data, 16 ); 171 ar.write( u.data, 16 );
172 return ar; 172 return ar;
173} 173}
174 174
175Bu::Formatter &Bu::operator<<( Bu::Formatter &f, const Bu::Uuid &u )
176{
177 return f << u.toString();
178}
179