[#BloombergLP-balxml-Encoder_EncodeObject] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::Encoder_EncodeObject :relfileprefix: ../../ :mrdocs: Component‐private class. Do not use. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/Encoder_EncodeObject/2constructor.adoc[`Encoder_EncodeObject`] [.small]#[constructor]# | Create an object encoder bound to the specified `context`. | xref:BloombergLP/balxml/Encoder_EncodeObject/execute.adoc[`execute`] | Encode the specified `object` with the specified `tag`, `formattingMode`, and `isMultiple` flag. | xref:BloombergLP/balxml/Encoder_EncodeObject/executeArrayListImp.adoc[`executeArrayListImp`] | Encode the specified array `object` as a list using the specified `tag`. | xref:BloombergLP/balxml/Encoder_EncodeObject/executeArrayRepetitionImp.adoc[`executeArrayRepetitionImp`] | Encode the specified array `object` as repeated elements using the specified `tag` and `formattingMode`. | xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-08.adoc[`executeImp`] | `executeImp` overloads | xref:BloombergLP/balxml/Encoder_EncodeObject/operator_call.adoc[`operator()`] | Encode the specified `object` using metadata from the specified `info`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#