BloombergLP::balxml::Decoder_ElementContext

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

Synopsis

Declared in <balxml_decoder.h>

class Decoder_ElementContext;

Description

This protocol class contain functions related to parsing XML elements. When the Decoder reads the XML document, it forwards the information about the current node as events to this protocol. There are several implementations of this protocol, depending on the type of element. The correct implementation for each type is selected by the Decoder_SelectContext meta-function. Each of the functions take a context parameter, which contains members related to the context of the decoder.

Member Functions

NameDescription
~Decoder_ElementContext [destructor] [virtual]For syntactic purposes only.
addCharacters [virtual]Process the specified character data while decoding. Return 0 on success, and a non-zero value otherwise.
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.

Derived Classes

NameDescription
Decoder_ChoiceContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_NillableContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_PushParserContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_SequenceContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_SimpleContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_StdStringContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_StdVectorCharContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_UTF8Context COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
Decoder_UnknownElementContext COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.