Panda3D
|
This is an implementation of the Windows GUID object, used everywhere as a world-unique identifier for anything and everything. More...
#include "windowsGuid.h"
Public Member Functions | |
WindowsGuid (unsigned long data1, unsigned short data2, unsigned short data3, unsigned char b1, unsigned char b2, unsigned char b3, unsigned char b4, unsigned char b5, unsigned char b6, unsigned char b7, unsigned char b8) | |
WindowsGuid (const WindowsGuid ©) | |
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 it sorts after, or zero if they are equivalent. | |
string | format_string () const |
Returns a hex representation of the GUID. | |
bool | operator!= (const WindowsGuid &other) const |
bool | operator< (const WindowsGuid &other) const |
void | operator= (const WindowsGuid ©) |
bool | operator== (const WindowsGuid &other) const |
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. |
This is an implementation of the Windows GUID object, used everywhere as a world-unique identifier for anything and everything.
In particular, it's used in the X file format to identify standard templates.
Definition at line 29 of file windowsGuid.h.
int WindowsGuid::compare_to | ( | const WindowsGuid & | other | ) | const [inline] |
Returns a number less than zero if this WindowsGuid sorts before the other one, greater than zero if it sorts after, or zero if they are equivalent.
Definition at line 109 of file windowsGuid.I.
string WindowsGuid::format_string | ( | ) | const |
Returns a hex representation of the GUID.
Definition at line 62 of file windowsGuid.cxx.
Referenced by output().
void WindowsGuid::output | ( | ostream & | out | ) | const |
Outputs a hex representation of the GUID.
Definition at line 80 of file windowsGuid.cxx.
References format_string().
bool WindowsGuid::parse_string | ( | const string & | str | ) |
Parses the hex representation in the indicated string and stores it in the WindowsGuid object.
Returns true if successful, false if the string representation is malformed.
Definition at line 29 of file windowsGuid.cxx.