BloombergLP::baljsn::EncodeImplUtil_AttributeDispatcher::EncodeImplUtil_AttributeDispatcher

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

NameDescription
formatterJSON formatter that receives the encoded tokens
logStreamstream for human-readable error descriptions
attributeNamename of the attribute
formattingModeformatting-mode bit-field for the attribute
isNextAttributeFirstif true, omit a leading delimiter
optionsencoding options