Encode the specified non‐modifiable object to the specified formatter.

Synopsis

Declared in <balxml_encoder.h>

template<class TYPE>
int
encode(
    Formatter& formatter,
    TYPE const& object);

Description

Return 0 on success, and a non‐zero value otherwise. Note that encoder will use encoder options, error and warning streams specified at the construction time.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

formatter

XML formatter to receive the encoded value

object

value to encode

Created with MrDocs