DumontEXE 0.0.1
QxtUuid.h
00001 
00002 
00003 #ifndef QXT_UUID_2513b5af_732d_4b5c_96d3_25486cab359d
00004 #define QXT_UUID_2513b5af_732d_4b5c_96d3_25486cab359d
00005 
00006 #include <QString>
00007 #include <QUuid>
00008 
00009 class QxtUuid: public QUuid
00010 {
00011   public:
00012 
00013 
00014     QString toString( const QString & formatString )
00015     {
00016       QString retVal = formatString
00017       .arg( ((GUID)id).Data1,    8, 16, QChar('0')  )
00018       .arg( ((GUID)id).Data2,    4, 16, QChar('0')  )
00019       .arg( ((GUID)id).Data3,    4, 16, QChar('0')  )
00020       .arg( ((GUID)id).Data4[0], 2, 16, QChar('0')  )
00021       .arg( ((GUID)id).Data4[1], 2, 16, QChar('0')  )
00022       .arg( ((GUID)id).Data4[2], 2, 16, QChar('0')  )
00023       .arg( ((GUID)id).Data4[3], 2, 16, QChar('0')  )
00024       .arg( ((GUID)id).Data4[4], 2, 16, QChar('0')  )
00025       .arg( ((GUID)id).Data4[5], 2, 16, QChar('0')  )
00026       .arg( ((GUID)id).Data4[6], 2, 16, QChar('0')  )
00027       .arg( ((GUID)id).Data4[7], 2, 16, QChar('0')  )
00028       ;
00029       return( retVal );
00030     }
00031 
00032 }
00033 
00034 
00035 
00036   protected:
00037 
00038   private:
00039 
00040 };
00041 
00042 
00043 #endif
00044 
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com