BloombergLP::balxml::Formatter::addElementAndData

Add an element of the specified name containing the specified value.

Synopsis

Declared in <balxml_formatter.h>

template<class TYPE>
void
addElementAndData(
    std::string_view const& name,
    TYPE const& value,
    int formattingMode = 0);

Description

This has the same effect as calling the following sequence: openElement(name); addData(value), closeElement(name);. Optionally specify the formattingMode.

Parameters

NameDescription
namename of the element
valuedata content of the element
formattingModemode used to format value