Mapping that associates a unique integer with each registered namespace URI.

Synopsis

Declared in <balxml_namespaceregistry.h>

class NamespaceRegistry;

Enums

Name

Description

Unnamed enum

Preregistered namespace identifiers.

Member Functions

Name

Description

NamespaceRegistry [constructor]

Constructors

~NamespaceRegistry [destructor]

Destroy this object. Release all memory to the allocator used at construction.

operator=

Discard the contents of this registry and assign it the contents of the specified rhs registry. For a given URI, the results of calling lookup by URI will produce equal results for this object and for rhs. For a given integer ID, the result of calling lookup by ID will produce different pointers that compare equal using strcmp.

lookup

lookup overloads

lookupOrRegister

Return the integer ID for the specified namespaceUri, assigning a new ID if the namespaceUri has not been registered before. Note that the IDs for pre‐registered namespaces (including the empty URI) are less than zero. (See "Preregistered Namespaces" in the 'balxml_namespaceregistry component‐level documentation.)

print

Print the contents of this object to the specified stream in human‐readable form.

reset

Removes all registered namespaces. Preregistered namespaces are not removed.

operator BloombergLP::bslmf::NestedTraitDeclaration<NamespaceRegistry, UsesBslmaAllocator>

NamespaceRegistry uses a bslma::Allocator to supply memory.

Friends

Name

Description

BloombergLP::balxml::operator==

Must be a friend for engineering reasons. Unlike most value‐semantic types, there is no efficient way to read the entire value of a namespace registry object.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs registry does not have the same value as the specified rhs registry and false otherwise. The two registries do not have the same value if there exists a URI string, u, such that lhs.lookup(u) != rhs.lookup(u).

Created with MrDocs