[#BloombergLP-baljsn-EncodeImplUtil_AttributeDispatcher-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil_AttributeDispatcher.adoc[EncodeImplUtil&lowbar;AttributeDispatcher]::EncodeImplUtil&lowbar;AttributeDispatcher
:relfileprefix: ../../../
:mrdocs:

Construct an attribute&hyphen;dispatcher with the specified attributes&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;encodeimplutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
EncodeImplUtil&lowbar;AttributeDispatcher(
    FORMATTER* formatter,
    std::ostream* logStream,
    std::string&lowbar;view const& attributeName,
    xref:BloombergLP/baljsn/EncodeImplUtil_AttributeDispatcher/FormattingMode.adoc[FormattingMode] formattingMode,
    bool isNextAttributeFirst,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options);
----

== Description

Construct an `EncodeImplUtil&lowbar;AttributeDispatcher` object having the specified `formatter`, `logStream`, `attributeName`, `formattingMode`, `isNextAttributeFirst`, and `options` attributes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *formatter*
| JSON formatter that receives the encoded tokens
| *logStream*
| stream for human&hyphen;readable error descriptions
| *attributeName*
| name of the attribute
| *formattingMode*
| formatting&hyphen;mode bit&hyphen;field for the attribute
| *isNextAttributeFirst*
| if `true`, omit a leading delimiter
| *options*
| encoding options
|===


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