#include <guid.h>
Public Member Functions | |
Construction | |
OpalGloballyUniqueID () | |
OpalGloballyUniqueID (const char *cstr) | |
OpalGloballyUniqueID (const PString &str) | |
OpalGloballyUniqueID (const PASN_OctetString &ostr) | |
Overrides from PObject | |
virtual void | PrintOn (ostream &strm) const |
virtual void | ReadFrom (istream &strm) |
virtual PObject * | Clone () const |
virtual PINDEX | HashFunction () const |
Operations | |
PString | AsString () const |
BOOL | IsNULL () const |
BOOL | operator! () const |
|
Create a new ID. The ID created with this will be initialised to a globally unique ID as per specification. |
|
Create an ID from a C string of hex (as produced by AsString()). A useful construct is to construct a OpalGloballyUniqueID() with NULL which produces an all zero GUID, etectable with the isNULL() function.
|
|
Create an ID from a PString of hex (as produced by AsString()).
|
|
Create an ID from an octet string in an ASN PDU.
|
|
Convert the ID to human readable string. |
|
Create a clone of the ID. The duplicate ID has the same value as the source. Required for having this object as a key in dictionaries. |
|
Get the hash value for the ID. Creates a number based on the ID value for use in the hash table of a dictionary. Required for having this object as a key in dictionaries. |
|
Test if the GUID is null, ie consists of all zeros. |
|
|
|
Standard stream print function. The PObject class has a << operator defined that calls this function polymorphically.
|
|
Standard stream read function. The PObject class has a >> operator defined that calls this function polymorphically.
|