1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
8 #ifndef GENERAL_TYPES_H_
9 #define GENERAL_TYPES_H_
28 enum NameConversionMode {
69 n_field, // Not supported by now
73 n_key, // Not supported by now
74 n_keyref, // Not supported by now
76 n_notation, // Not supported by now
80 n_selector, // Not supported by now
85 n_unique, // Not supported by now
87 // XSD Restrictions / Facets for Datatypes:
89 n_fractionDigits, // Not supported by now
101 // Others - non-standard, but used:
108 /** This type just stores the textual information about an XML namespace */
109 class NamespaceType {
118 NamespaceType(const Mstring& p, const Mstring& u)
119 : prefix(p), uri(u) {
122 bool operator<(const NamespaceType & rhs) const {
123 return uri < rhs.uri;
126 bool operator==(const NamespaceType & rhs) const {
127 return (uri == rhs.uri) && (prefix == rhs.prefix);
131 class QualifiedName {
139 : nsuri(), name(), orig_name(), dup(false) {
142 QualifiedName(const Mstring& ns, const Mstring nm)
143 : nsuri(ns), name(nm), dup(false) {
146 QualifiedName(const Mstring& ns, const Mstring nm, const Mstring orig)
147 : nsuri(ns), name(nm), orig_name(orig), dup(false) {
150 bool operator<(const QualifiedName& rhs) const {
151 return name < rhs.name;
154 bool operator==(const QualifiedName& rhs) const {
155 return (nsuri == rhs.nsuri) && (name == rhs.name);
158 bool operator!=(const QualifiedName& rhs) const {
159 return (nsuri != rhs.nsuri) || (name != rhs.name);
164 want_CT, want_ST, want_BOTH
167 #endif /*GENERAL_TYPES_H_*/