[#BloombergLP-baljsn-EncodeImplUtil_SelectionDispatcher-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher.adoc[EncodeImplUtil_SelectionDispatcher]::EncodeImplUtil_SelectionDispatcher :relfileprefix: ../../../ :mrdocs: Construct an `EncodeImplUtil_SelectionDispatcher` object having the specified `formatter`, `logStream`, and `options` attributes. == Synopsis Declared in `<baljsn_encodeimplutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- EncodeImplUtil_SelectionDispatcher( FORMATTER* formatter, std::ostream* logStream, std::string_view const& selectionName, xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/FormattingMode.adoc[FormattingMode] formattingMode, bool isNextObjectFirst, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options); ---- == Parameters [cols="1,4"] |=== | Name| Description | *formatter* | JSON formatter that receives the encoded tokens | *logStream* | stream for human‐readable error descriptions | *selectionName* | name of the selection | *formattingMode* | formatting‐mode bit‐field for the selection | *isNextObjectFirst* | if `true`, omit a leading sequence delimiter | *options* | encoding options |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#