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
Name |
Description |
stream |
output stream for formatted JSON |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs