BloombergLP::baljsn::SimpleFormatter::SimpleFormatter

Constructors

Synopses

Declared in <baljsn_simpleformatter.h>

Create a SimpleFormatter object using the specified stream. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

explicit
SimpleFormatter(
    std::ostream& stream,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a SimpleFormatter object having the same value as the specified original object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

SimpleFormatter(
    SimpleFormatter const& original,
    bslma::Allocator* basicAllocator);
» more...

Create a SimpleFormatter object using the specified stream. Optionally specify encoderOptions to configure the output options - if encoderOptions is not supplied, a default-constructed EncoderOptions object will be used. Note that the encodeEmptyArrays attribute in the encoderOptions is ignored. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

explicit
SimpleFormatter(
    std::ostream& stream,
    EncoderOptions const& encoderOptions,
    bslma::Allocator* basicAllocator = 0);
» more...