Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/NamespaceManager.h
A NamespaceManager stores all known namespaces and assigns an id to each namespace. Is a singleton.
Member Functions: end, get, getId, getNamespace, hasNamespace, instance, set
typedef std::map < NamespaceId, std::string > IdMap;
typedef Poco::UInt32 NamespaceId;
typedef std::map < std::string, NamespaceId > NamespaceMap;
~NamespaceManager();
Destroys the NamespaceManager.
NamespaceManager::NamespaceMap::const_iterator end() const;
Returns the end iterator.
NamespaceManager::NamespaceMap::const_iterator get(
const std::string & ns
) const;
NamespaceManager::NamespaceId getId(
const std::string & ns
) const;
const std::string & getNamespace(
NamespaceManager::NamespaceId id
) const;
bool hasNamespace(
const std::string & ns
) const;
bool hasNamespace(
NamespaceManager::NamespaceId id
) const;
static NamespaceManager & instance();
Returns the singleton.
NamespaceManager::NamespaceMap::const_iterator set(
const std::string & ns
);
Inserts the namespace into the manager and returns the assigned id. If the namespace already exists, the insert is ignored and the id is returned.