BloombergLP::balxml::Encoder_EncodeObject

Component-private class. Do not use.

Synopsis

Declared in <balxml_encoder.h>

class Encoder_EncodeObject;

Description

This struct encodes an object with enclosing tags. Compared to the EncoderUtil_EncodeValue class below, this class prefixes the value with an opening tag, and suffixes the value with a closing tag. In pseudocode, this is equivalent to: ` openTag() Encoder_EncodeValue() closeTag() ` There is an overloaded version of bsl::vector<char> because, based on the formatting mode, this class needs to switch between encoding the value in a single tag (i.e., when using BASE64, TEXT, IS_LIST or HEX) and encoding the value in multiple tags (i.e., when repetition is used).

Member Functions

NameDescription
Encoder_EncodeObject [constructor]Create an object encoder bound to the specified context.
execute Encode the specified object with the specified tag, formattingMode, and isMultiple flag.
executeArrayListImp Encode the specified array object as a list using the specified tag.
executeArrayRepetitionImp Encode the specified array object as repeated elements using the specified tag and formattingMode.
executeImp executeImp overloads
operator() Encode the specified object using metadata from the specified info.