BloombergLP::balxml::Encoder_SequenceFirstPass::addAttributeImp

Add an attribute with the specified name, the value of the specified object, using the specified formattingMode.

Synopsis

Declared in <balxml_encoder.h>

template<class TYPE>
int
addAttributeImp(
    TYPE const& object,
    std::string_view const& name,
    int formattingMode,
    bdlat_TypeCategory::NullableValue category);

Description

Note that the last argument is used for overloading purposes only.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
objectnullable attribute value
nameattribute name
formattingModeformatting mode for the value
categorynullable-value type-category tag