BDE 4.14.0 Production release
|
Provide a unique integer ID for each XML namespace.
balxml::PrefixStack
keeps a collection of pairs - the prefix string and the integer associated with each namespace uri. Registration of prefix with namespace works similar to "pushing in stack", i.e., it hides the previous prefix<->namespaces association. Deregistration of prefix removes the current association and opens the previous association of given prefix.
It is safe to read or modify multiple instances of balxml::PrefixStack
simultaneously, each from a separate thread. It is safe to read a single instance of balxml::PrefixStack
from multiple threads, provided no thread is modifying it at the same time. It is not safe to read or modify an instance of balxml::PrefixStack
from one thread while any other thread is modifying the same instance. Modifying a balxml::PrefixStack
objects may modify the referenced balxml::NamespaceRegistry
object. It is not safe to read or modify an instance of balxml::PrefixStack
from one thread while any other thread is (directly or indirectly) modifying the referenced balxml::NamespaceRegistry
.
This section illustrates intended use of this component.
In this example we demonstrate registering several prefixes with different namespaces and printing them along with their ID.