BloombergLP::balxml::Encoder_Context

This struct contains state that is maintained during encoding.

Synopsis

Declared in <balxml_encoder.h>

class Encoder_Context;

Description

It also contains methods for switching between pretty formatting and compact formatting, based on the encoding options.

Member Functions

NameDescription
Encoder_Context [constructor]Create a context bound to the specified formatter and encoder.
addAttribute addAttribute overloads
closeElement Close the element with the specified name.
encoderOptions Return a reference to the encoder options in use.
invalidate Invalidate the current encoding state.
logError Log an encoding error or warning with the specified text, tag, formattingMode, and optional index.
openElement Open an element with the specified name.
rawOutputStream Return the raw output stream used by this context.
status Return the current encoding status.