This struct provides a namespace for functions that create Universally Unique Identifiers per RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

Synopsis

Declared in <bdlb_guidutil.h>

struct GuidUtil;

Static Member Functions

Name

Description

dnsNamespace

Return the pre‐defined namespace ID for the DNS namespace from Appendix C of RFC 4122, for use with the generateFromName method when the name string is a fully‐qualified domain name.

generate

generate overloads

generateFromName

Generate and return a single GUID meeting the RFC 4122 version 5 specification from the specified namespaceId and name. namespaceId may (but need not) be one of the pre‐defined namespace IDs. Note that this method is a pure function of its arguments.

generateNonSecure

generateNonSecure overloads

getLeastSignificantBits

Return the least significant 8 bytes of the specified guid.

getMostSignificantBits

Return the most significant 8 bytes of the specified guid.

getVersion

Return the version of the specified guid object. The behavior is undefined unless the contents of the guid object are compliant with RFC 4122.

guidFromString

guidFromString overloads

guidToString

guidToString overloads

oidNamespace

Return the pre‐defined namespace ID for the OID namespace from Appendix C of RFC 4122, for use with the generateFromName method when the name string is an ISO Object ID (OID).

urlNamespace

Return the pre‐defined namespace ID for the URL namespace from Appendix C of RFC 4122, for use with the generateFromName method when the name string is a URL.

x500Namespace

Return the pre‐defined namespace ID for the X500 namespace from Appendix C of RFC 4122, for use with the generateFromName method when the name string is an X.500 Distinguished Name.

Created with MrDocs