Construct an attribute‐dispatcher with the specified attributes.

Synopsis

Declared in <baljsn_encodeimplutil.h>

EncodeImplUtil_AttributeDispatcher(
    FORMATTER* formatter,
    std::ostream* logStream,
    std::string_view const& attributeName,
    FormattingMode formattingMode,
    bool isNextAttributeFirst,
    EncoderOptions const& options);

Description

Construct an EncodeImplUtil_AttributeDispatcher object having the specified formatter, logStream, attributeName, formattingMode, isNextAttributeFirst, and options attributes.

Parameters

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

Created with MrDocs