[#BloombergLP-balxml-Encoder_EncodeObject-executeImp-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_EncodeObject.adoc[Encoder&lowbar;EncodeObject]::executeImp
:relfileprefix: ../../../
:mrdocs:

`executeImp` overloads

== Synopses

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

Encode the specified `object` as a `bsl&colon;&colon;vector&lt;char&gt;` using the specified `tag`, `formattingMode`, and `isMultiple` flag&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0d.adoc[executeImp](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;] const& object,
    std::string&lowbar;view const& tag,
    int formattingMode,
    bool isMultiple,
    xref:BloombergLP/bdlat_TypeCategory/Array.adoc[bdlat&lowbar;TypeCategory::Array] category);
----

[.small]#xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0d.adoc[_» more&period;&period;&period;_]#

Encode the specified `object` with the specified `tag`, `formattingMode`, and `isMultiple` flag for an array type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0c5.adoc[executeImp](
    TYPE const& object,
    std::string&lowbar;view const& tag,
    int formattingMode,
    bool isMultiple,
    xref:BloombergLP/bdlat_TypeCategory/Array.adoc[bdlat&lowbar;TypeCategory::Array] category);
----

[.small]#xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0c5.adoc[_» more&period;&period;&period;_]#

Encode the specified `object` with the specified `tag`, `formattingMode`, and `isMultiple` flag for a dynamic type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0b.adoc[executeImp](
    TYPE const& object,
    std::string&lowbar;view const& tag,
    int formattingMode,
    bool isMultiple,
    xref:BloombergLP/bdlat_TypeCategory/DynamicType.adoc[bdlat&lowbar;TypeCategory::DynamicType] category);
----

[.small]#xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0b.adoc[_» more&period;&period;&period;_]#

Encode the specified `object` with the specified `tag`, `formattingMode`, and `isMultiple` flag for a nullable&hyphen;value type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0cb.adoc[executeImp](
    TYPE const& object,
    std::string&lowbar;view const& tag,
    int formattingMode,
    bool isMultiple,
    xref:BloombergLP/bdlat_TypeCategory/NullableValue.adoc[bdlat&lowbar;TypeCategory::NullableValue] category);
----

[.small]#xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-0cb.adoc[_» more&period;&period;&period;_]#

Encode the specified `object` with the specified `tag`, `formattingMode`, and `isMultiple` flag for the specified category&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class ANY&lowbar;CATEGORY&gt;
int
xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-00.adoc[executeImp](
    TYPE const& object,
    std::string&lowbar;view const& tag,
    int formattingMode,
    bool isMultiple,
    ANY&lowbar;CATEGORY category);
----

[.small]#xref:BloombergLP/balxml/Encoder_EncodeObject/executeImp-00.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| character vector to encode
| *tag*
| XML element tag
| *formattingMode*
| formatting mode for the value
| *isMultiple*
| whether the value is a repeated occurrence
| *category*
| array type&hyphen;category tag
|===


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