[#BloombergLP-balxml-Encoder_EncodeValue-executeImp-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_EncodeValue.adoc[Encoder_EncodeValue]::executeImp :relfileprefix: ../../../ :mrdocs: Encode the specified `object` with the specified `formattingMode` for a choice type. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int executeImp( TYPE const& object, int formattingMode, xref:BloombergLP/bdlat_TypeCategory/Choice.adoc[bdlat_TypeCategory::Choice] category); ---- == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *object* | choice value to encode | *formattingMode* | formatting mode for the value | *category* | choice type‐category tag |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#