[#BloombergLP-balxml-Encoder_EncodeValue-executeImp-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_EncodeValue.adoc[Encoder&lowbar;EncodeValue]::executeImp
:relfileprefix: ../../../
:mrdocs:

Encode the specified `object` with the specified `formattingMode` for a dynamic type&period;

== Synopsis

Declared in `&lt;balxml&lowbar;encoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
executeImp(
    TYPE const& object,
    int formattingMode,
    xref:BloombergLP/bdlat_TypeCategory/DynamicType.adoc[bdlat&lowbar;TypeCategory::DynamicType] category);
----

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| dynamic value to encode
| *formattingMode*
| formatting mode for the value
| *category*
| dynamic type&hyphen;category tag
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
