15 #ifndef WINDOWS_GUID_H
16 #define WINDOWS_GUID_H
18 #include "pandatoolbase.h"
32 INLINE WindowsGuid(
unsigned long data1,
33 unsigned short data2,
unsigned short data3,
34 unsigned char b1,
unsigned char b2,
unsigned char b3,
35 unsigned char b4,
unsigned char b5,
unsigned char b6,
36 unsigned char b7,
unsigned char b8);
37 INLINE WindowsGuid(
const WindowsGuid ©);
38 INLINE
void operator = (
const WindowsGuid ©);
40 INLINE
bool operator == (
const WindowsGuid &other)
const;
41 INLINE
bool operator != (
const WindowsGuid &other)
const;
42 INLINE
bool operator < (
const WindowsGuid &other)
const;
43 INLINE
int compare_to(
const WindowsGuid &other)
const;
48 void output(ostream &out)
const;
52 unsigned short _data2;
53 unsigned short _data3;
54 unsigned char _b1, _b2, _b3, _b4, _b5, _b6, _b7, _b8;
57 INLINE ostream &operator << (ostream &out,
const WindowsGuid &guid);
59 #include "windowsGuid.I"
This is an implementation of the Windows GUID object, used everywhere as a world-unique identifier fo...
int compare_to(const WindowsGuid &other) const
Returns a number less than zero if this WindowsGuid sorts before the other one, greater than zero if ...
void output(ostream &out) const
Outputs a hex representation of the GUID.
bool parse_string(const string &str)
Parses the hex representation in the indicated string and stores it in the WindowsGuid object...
string format_string() const
Returns a hex representation of the GUID.