BloombergLP::balxml::ElementAttribute::reset

Reset this attribute object with the specified facets.

Synopsis

Declared in <balxml_elementattribute.h>

void
reset(
    PrefixStack const* prefixStack,
    char const* qualifiedName,
    char const* value,
    char const* prefix = 0,
    char const* localName = 0,
    int namespaceId = INT_MIN,
    char const* namespaceUri = 0,
    unsigned int flags = 0);

Description

Reset this attribute object with the specified, prefixStack, qualifiedName, and value, with optionally specified prefix, localName, namespaceId, namespaceUri, and flags. Except for flags, if any of the optional arguments are null (for pointers) or INT_MIN (for integer arguments), then the corresponding facet will computed from the other arguments on an as-needed basis. If all of the optional arguments are given non-null, non-INT_MIN values, then prefixStack is unused and may be null. Arguments are permitted to be inconsistent with one another (e.g., prefix may not match the beginning of qualifiedName) and will produce an object for with facets that are inconsistent with one another. This object will become invalid if any of the supplied pointers is invalidated during its lifetime (or before it is reset). An invalid object may be destroyed or reset, but any other access yields undefined behavior.

Parameters

NameDescription
prefixStackprefix stack used to resolve namespace facets
qualifiedNamequalified attribute name
valueattribute value
prefixoptional namespace prefix
localNameoptional local name
namespaceIdoptional namespace ID
namespaceUrioptional namespace URI
flagsoptional attribute flags