Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

aka2::prefix_map Class Reference

associative map for namespace prefix and URI. More...

#include <namespaces.h>

List of all members.

Public Methods

void assign_prefix (const std::string &prefix, const std::string &uri)
void clear_prefix (const std::string &prefix)


Detailed Description

associative map for namespace prefix and URI.

Definition at line 101 of file namespaces.h.


Member Function Documentation

void aka2::prefix_map::assign_prefix const std::string &    prefix,
const std::string &    uri
 

assign prefix to namespace URI.

Assign prefix to namespace URI.
Users can assign prefix for multiple times, and latest prefix assignment is active.
xml namespace must not be assigned, because it has its own namespace by definition.

Parameters:
prefix  prefix
uri  namespace URI
Exceptions:
aka2::error  thrown if xml namespace is re-assigined, or URI is not unregistered by aka2::xmlns().

void aka2::prefix_map::clear_prefix const std::string &    prefix
 

clear assigned prefix.

Parameters:
prefix  prefix.
Exceptions:
aka2::error  thrown if prefix not assigned.


The documentation for this class was generated from the following file:
Generated on Sun Dec 19 22:59:00 2004 for akaxiso2 by doxygen1.2.18