[#BloombergLP-baljsn-EncodeImplUtil_AttributeDispatcher-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil_AttributeDispatcher.adoc[EncodeImplUtil_AttributeDispatcher]::EncodeImplUtil_AttributeDispatcher :relfileprefix: ../../../ :mrdocs: Construct an attribute‐dispatcher with the specified attributes. == Synopsis Declared in `<baljsn_encodeimplutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- EncodeImplUtil_AttributeDispatcher( FORMATTER* formatter, std::ostream* logStream, std::string_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_AttributeDispatcher` object having the specified `formatter`, `logStream`, `attributeName`, `formattingMode`, `isNextAttributeFirst`, and `options` attributes. == Parameters [cols="1,4"] |=== | Name| Description | *formatter* | JSON formatter that receives the encoded tokens | *logStream* | stream for human‐readable error descriptions | *attributeName* | name of the attribute | *formattingMode* | formatting‐mode bit‐field for the attribute | *isNextAttributeFirst* | if `true`, omit a leading delimiter | *options* | encoding options |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#