From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/unstable/uuid.h | 84 ++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'src/unstable/uuid.h') diff --git a/src/unstable/uuid.h b/src/unstable/uuid.h index bb3d608..ecc142d 100644 --- a/src/unstable/uuid.h +++ b/src/unstable/uuid.h @@ -13,59 +13,59 @@ namespace Bu { - class Uuid - { - friend Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); - friend Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); - public: - Uuid(); - Uuid( const Uuid &src ); - Uuid( const Bu::String &sSrc ); - virtual ~Uuid(); + class Uuid + { + friend Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); + friend Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); + public: + Uuid(); + Uuid( const Uuid &src ); + Uuid( const Bu::String &sSrc ); + virtual ~Uuid(); - Bu::String toRawString() const; - Bu::String toString() const; - Bu::String toUrn() const; + Bu::String toRawString() const; + Bu::String toString() const; + Bu::String toUrn() const; - enum Type - { - System, - Version1, - Version2, - Version3, - Version4, - Version5, - }; + enum Type + { + System, + Version1, + Version2, + Version3, + Version4, + Version5, + }; - int getVersion(); + int getVersion(); - static Uuid generate( Type eType = System ); - DEPRECATED static Uuid gen() { return generate(); } + static Uuid generate( Type eType = System ); + DEPRECATED static Uuid gen() { return generate(); } - void clear(); - void set( const Bu::String &sSrc ); + void clear(); + void set( const Bu::String &sSrc ); - bool operator==( const Uuid &rhs ) const; - bool operator!=( const Uuid &rhs ) const; - Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; } - Uuid &operator=( const Uuid &rhs ); + bool operator==( const Uuid &rhs ) const; + bool operator!=( const Uuid &rhs ) const; + Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; } + Uuid &operator=( const Uuid &rhs ); - private: - unsigned char data[16]; - }; + private: + unsigned char data[16]; + }; - template - uint32_t __calcHashCode( const T &k ); + template + uint32_t __calcHashCode( const T &k ); - template - bool __cmpHashKeys( const T &a, const T &b ); + template + bool __cmpHashKeys( const T &a, const T &b ); - template<> uint32_t __calcHashCode( const Uuid &k ); - template<> bool __cmpHashKeys( - const Uuid &a, const Uuid &b ); + template<> uint32_t __calcHashCode( const Uuid &k ); + template<> bool __cmpHashKeys( + const Uuid &a, const Uuid &b ); - Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); - Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); + Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); + Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); }; #endif -- cgit v1.2.3