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
addAttribute(
    TYPE const& object,
    std::string_view const& name,
    int formattingMode);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

object

attribute value

name

attribute name

formattingMode

formatting mode for the value

Created with MrDocs