Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CGuid Class Reference

List of all members.

Public Methods

 CGuid (t_ulong, t_ushort, t_ushort, t_uchar, t_uchar, t_uchar, t_uchar, t_uchar, t_uchar, t_uchar, t_uchar)
 CGuid ()
 CGuid (const std::string &)
CGuid & operator= (const CGuid &Guid)
bool operator== (const CGuid &Guid) const
bool operator!= (const CGuid &Guid) const
std::string ToString (void) const

Detailed Description

The aim of CGuid is to encapsulate the notion of the General Universal ID (i.e. GUID). In the COM environment, the GUID is a 128-bit value that uniquely identifies objects such as OLE servers, interfaces, manager entry-point vectors, and client objects.

Win32 plateform presented the GUID with the following structure (cf.\c winnt.h) :

        typedef struct _GUID {
                        DWORD Data1;
                        WORD   Data2;
                        WORD   Data3;
                        BYTE  Data4[8];
                } GUID; 
with:


Constructor & Destructor Documentation

CGuid::CGuid t_ulong   data1,
t_ushort   data2,
t_ushort   data3,
t_uchar   data4_0,
t_uchar   data4_1,
t_uchar   data4_2,
t_uchar   data4_3,
t_uchar   data4_4,
t_uchar   data4_5,
t_uchar   data4_6,
t_uchar   data4_7
 

Constructor. Do not use directly this function, but use the hyp_DEFINE_GUID macro.

CGuid::CGuid  
 

Initializes all the data to 0.

Warning:
Use this constructor with carefulness and only temporarily.

CGuid::CGuid const std::string &   String
 

Initializes the object with the string. This string must be formated like Guiden.exe. See CGuid::ToString.


Member Function Documentation

std::string CGuid::ToString void   const
 

Converts the object to a string. This string is generated with the same format like Guiden.exe.

{FCA9BB80-69A5-11d5-A099-0080AD97951B}
Returns:
The formated string.


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.