00001 #ifndef WBUTILITY_H
00002 #define WBUTILITY_H
00003 #include "WBWin.h"
00004 #include <Base/BaseUtility.h>
00005
00006 namespace Spr {;
00007 class SPR_DLL WBGuid: public GUID{
00008 public:
00009 WBGuid(UTString s);
00010 WBGuid(const GUID& g):GUID(g){}
00011 WBGuid(){}
00012 WBGuid& operator =(const GUID& g){
00013 *this=WBGuid(g);
00014 return *this;
00015 }
00016 void Print(std::ostream& os) const;
00017 };
00018 inline bool operator < (const WBGuid& g1, const WBGuid& g2){
00019 return memcmp(&g1, &g2, 16) < 0;
00020 }
00021 inline std::ostream& operator << (std::ostream& os, const WBGuid& g){
00022 g.Print(os);
00023 return os;
00024 }
00025
00026 }
00027 #endif