ddn.data.cdm.attribute

CDM attribute for SDL-style tags.

This module provides the CdmAttribute struct for representing name=value pairs in SDL tags.

Types 1

SDL tag attribute (name=value pair).

CdmAttribute represents an attribute on a TAG node, consisting of an optional namespace prefix, a name, a value, and a source location.

Unlike the old DomAttribute which stored the value inline, CdmAttribute stores the value as a pointer, allowing shared reference semantics.

Examples

CdmAttribute attr;
attr.name = "version";
attr.namespace = "xsi";
assert(attr.fullName() == "xsi:version");

CdmAttribute simple;
simple.name = "id";
assert(simple.fullName() == "id");
Fields
string namespace
string name
CdmNode * value
CdmLocation location
Methods
string fullName() const pure nothrow @safeReturns the fully qualified attribute name.