BloombergLP::balxml::Decoder_StdStringContext

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

Synopsis

Declared in <balxml_decoder.h>

class Decoder_StdStringContext
    : public Decoder_ElementContext

Description

Proxy context for bsl::string. This is just a proxy context. It will forward all callbacks to the appropriate context, based on the formatting mode.

Base Classes

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

Type Aliases

NameDescription
Base64Context Context type for base64-encoded string parsing.
HexContext Context type for hex-encoded string parsing.
UTF8Context Context type for UTF-8 string parsing.

Member Functions

NameDescription
Decoder_StdStringContext [constructor]Create a proxy context for decoding a bsl::string using the specified formattingMode.
~Decoder_StdStringContext [destructor] [virtual]Destroy this string parsing context.
addCharacters [virtual]Process the specified character data chars of the specified length while decoding a bsl::string element. 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.

Data Members

NameDescription
d_base64Context [variant member]Active base64 parser context storage.
d_hexContext [variant member]Active hex parser context storage.
d_utf8Context [variant member]Active UTF-8 parser context storage.