Format the specified object to the specified output stream using the specified formattingMode.

Synopsis

Declared in <balxml_typesprintutil.h>

template<class TYPE>
static
std::ostream&
print(
    std::ostream& stream,
    TYPE const& object,
    int formattingMode,
    EncoderOptions const* encoderOptions = 0);

Description

Optionally use the specified encoderOptions and return a reference to stream. The behavior is undefined unless the parameterized TYPE and the formattingMode combination is supported (supported combinations are listed in the component‐level documentation).

Return Value

a reference to the modifiable stream

Parameters

Name

Description

stream

output stream to receive the formatted text

object

value to format

formattingMode

XML formatting mode for object

encoderOptions

encoding options; null uses defaults

Created with MrDocs