This struct contains state that is maintained during encoding. It also contains methods for switching between pretty formatting and compact formatting, based on the encoding options.

Synopsis

Declared in <balxml_encoder.h>

class Encoder_Context;

Member Functions

Name

Description

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. Return the severity of the logged message.

openElement

Open an element with the specified name.

rawOutputStream

Return the raw output stream used by this context.

status

Return the current encoding status.

Created with MrDocs