Represents an XML attribute name with an optional namespace.
More...
#include "donner/base/xml/XMLQualifiedName.h"
|
|
RcString | namespacePrefix |
| | The namespace prefix of the attribute, or an empty string if no namespace (default namespace).
|
|
RcString | name |
| | The attribute name.
|
|
|
std::ostream & | operator<< (std::ostream &os, const XMLQualifiedName &obj) |
| | Ostream output operator using XML syntax (e.g. "ns:name").
|
Represents an XML attribute name with an optional namespace.
◆ XMLQualifiedName() [1/2]
| donner::xml::XMLQualifiedName::XMLQualifiedName |
( |
const RcString & | name | ) |
|
|
inline |
Construct from an attribute with an empty (default) namespace.
- Parameters
-
◆ XMLQualifiedName() [2/2]
| donner::xml::XMLQualifiedName::XMLQualifiedName |
( |
const RcString & | namespacePrefix, |
|
|
const RcString & | name ) |
|
inline |
Construct from an attribute with a namespace prefix.
- Parameters
-
| namespacePrefix | The namespace of the name, or empty if the name belongs to the default namespace. |
| name | The attribute name. |
◆ printCssSyntax()
| details::DeferredCssSyntaxPrinter< XMLQualifiedName > donner::xml::XMLQualifiedName::printCssSyntax |
( |
| ) |
const |
|
inline |
When used in an ostream output stream, prints the qualified name as a CSS selector (e.g.
"ns|name").
Example usage:
std::cout <<
name.printCssSyntax() <<
"\n";
XMLQualifiedName(const RcString &name)
Construct from an attribute with an empty (default) namespace.
Definition XMLQualifiedName.h:62
RcString name
The attribute name.
Definition XMLQualifiedName.h:55
The documentation for this struct was generated from the following file: