#include <guid.h>
Inheritance diagram for PGloballyUniqueID:
Public Member Functions | |
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 |
PGloballyUniqueID::PGloballyUniqueID | ( | ) |
Create a new ID. The ID created with this will be initialised to a globally unique ID as per specification.
PGloballyUniqueID::PGloballyUniqueID | ( | const char * | cstr | ) |
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.
cstr | C string to convert |
PGloballyUniqueID::PGloballyUniqueID | ( | const PString & | str | ) |
Create an ID from a PString of hex (as produced by AsString()).
str | String of hex to convert |
PGloballyUniqueID::PGloballyUniqueID | ( | const PASN_OctetString & | ostr | ) |
Create an ID from an octet string in an ASN PDU.
ostr | Octet string from ASN to convert |
PGloballyUniqueID::PGloballyUniqueID | ( | ) |
Create a new ID. The ID created with this will be initialised to a globally unique ID as per specification.
PGloballyUniqueID::PGloballyUniqueID | ( | const char * | cstr | ) |
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.
cstr | C string to convert |
PGloballyUniqueID::PGloballyUniqueID | ( | const PString & | str | ) |
Create an ID from a PString of hex (as produced by AsString()).
str | String of hex to convert |
PGloballyUniqueID::PGloballyUniqueID | ( | const PASN_OctetString & | ostr | ) |
Create an ID from an octet string in an ASN PDU.
ostr | Octet string from ASN to convert |
virtual void PGloballyUniqueID::PrintOn | ( | ostream & | strm | ) | const [virtual] |
Standard stream print function. The PObject class has a << operator defined that calls this function polymorphically.
strm | Stream to output text representation |
virtual void PGloballyUniqueID::ReadFrom | ( | istream & | strm | ) | [virtual] |
Standard stream read function. The PObject class has a >> operator defined that calls this function polymorphically.
strm | Stream to output text representation |
virtual PObject* PGloballyUniqueID::Clone | ( | ) | const [virtual] |
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.
virtual PINDEX PGloballyUniqueID::HashFunction | ( | ) | const [virtual] |
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.
PString PGloballyUniqueID::AsString | ( | ) | const |
Convert the ID to human readable string.
BOOL PGloballyUniqueID::IsNULL | ( | ) | const |
Test if the GUID is null, ie consists of all zeros.
BOOL PGloballyUniqueID::operator! | ( | ) | const [inline] |