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.
|
|
|
bool | operator== (const XMLQualifiedName &lhs, std::string_view rhs) |
| | Compare against an unqualified name string in the default namespace.
|
|
bool | operator== (std::string_view lhs, const XMLQualifiedName &rhs) |
| | Compare against an unqualified name string in the default namespace.
|
|
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/5]
| donner::xml::XMLQualifiedName::XMLQualifiedName |
( |
const RcString & | name | ) |
|
|
inline |
Construct from an attribute with an empty (default) namespace.
- Parameters
-
◆ XMLQualifiedName() [2/5]
| donner::xml::XMLQualifiedName::XMLQualifiedName |
( |
const char * | name | ) |
|
|
inlineexplicit |
Construct from an attribute with an empty (default) namespace.
- Parameters
-
◆ XMLQualifiedName() [3/5]
| donner::xml::XMLQualifiedName::XMLQualifiedName |
( |
std::string_view | name | ) |
|
|
inlineexplicit |
Construct from an attribute with an empty (default) namespace.
- Parameters
-
◆ XMLQualifiedName() [4/5]
| 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. |
◆ XMLQualifiedName() [5/5]
Construct by copying from a qualified-name reference.
- Parameters
-
| attr | Qualified name reference to copy from. |
◆ 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:64
RcString name
The attribute name.
Definition XMLQualifiedName.h:57
The documentation for this struct was generated from the following file: