BloombergLP::baljsn::SimpleFormatter::SimpleFormatter

Create a SimpleFormatter that writes JSON to the specified stream.

Synopsis

Declared in <baljsn_simpleformatter.h>

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

Description

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.

Parameters

NameDescription
streamoutput stream for formatted JSON
basicAllocatormemory allocator; null uses the default