14 #ifndef WINDOWS_GUID_H 15 #define WINDOWS_GUID_H 30 unsigned short data2,
unsigned short data3,
31 unsigned char b1,
unsigned char b2,
unsigned char b3,
32 unsigned char b4,
unsigned char b5,
unsigned char b6,
33 unsigned char b7,
unsigned char b8);
37 INLINE
bool operator == (
const WindowsGuid &other)
const;
38 INLINE
bool operator != (
const WindowsGuid &other)
const;
39 INLINE
bool operator < (
const WindowsGuid &other)
const;
45 void output(std::ostream &out)
const;
49 unsigned short _data2;
50 unsigned short _data3;
51 unsigned char _b1, _b2, _b3, _b4, _b5, _b6, _b7, _b8;
54 INLINE std::ostream &operator << (std::ostream &out,
const WindowsGuid &guid);
This is an implementation of the Windows GUID object, used everywhere as a world-unique identifier fo...
void output(std::ostream &out) const
Outputs a hex representation of the GUID.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::string format_string() const
Returns a hex representation of the GUID.
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 ...
bool parse_string(const std::string &str)
Parses the hex representation in the indicated string and stores it in the WindowsGuid object.