COMPONENT‐PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.

Synopsis

Declared in <balxml_decoder.h>

template<class TYPE>
class Decoder_ChoiceContext
    : public Decoder_ElementContext

Description

This is the context for types that fall under bdlat_TypeCategory::Choice.

Base Classes

Name

Description

Decoder_ElementContext

COMPONENT‐PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.

Member Functions

Name

Description

Decoder_ChoiceContext [constructor]

Create a choice decoding context for the specified object using the specified formattingMode to control how values are parsed.

addCharacters [virtual]

Process the specified character data chars of the specified length while decoding a choice element. Return 0 on success and a non‐zero value if invalid characters are present.

beginParse

Invoked when the decoder begins parsing. Return 0 on success, and a non‐zero value otherwise.

endElement [virtual]

Invoked when the decoder finishes parsing an element. Return 0 on success, and a non‐zero value otherwise.

parseAttribute [virtual]

Invoked when the decoder encounters an attribute. Return 0 on success, and a non‐zero value otherwise.

parseSubElement [virtual]

Invoked when the decoder encounters a sub‐element. Return 0 on success, and a non‐zero value otherwise.

startElement [virtual]

Invoked when the decoder begins parsing an element. Return 0 on success, and a non‐zero value otherwise.

Created with MrDocs