Formatter that assembles a bdljsn::Json object via manipulators.
Declared in <baljsn_jsonformatter.h>
class JsonFormatter;
This class implements a formatter mechanism that assembles a (potentially complicated) bdljsn::Json object according to the invocations of the formatter's manipulators.
| Name | Description |
|---|---|
allocator_type | Type of the allocator used to supply memory. |
| Name | Description |
|---|---|
JsonFormatter [constructor] | Create a JsonFormatter that modifies the specified json object. |
addArrayElementSeparator | No-op. |
closeArray | Indicate that there are no more elements to be added to the current array. |
closeMember | Indicate that there are no more members to be added to the current object. |
closeObject | Indicate that there are no more members to be added to the current object. |
dumpStack | Print the internal stack of Status objects to standard output in lifo order. Each line of output consists of: |
get_allocator | Return the allocator used by this object to supply memory. |
nestingDepth | No-op. Return 0. |
openArray | Create a new array for subsequently added elements. |
openMember | Create a new object member having the specified name. |
openObject | Create a new object (set of name/value pairs also know as "members"). Note subsequently created members will land in this object until closeObject is called. |
putNullValue | Set the current array element or object value to null. |
putValue | Set the current scalar, array element, or object member to value. |
| Name | Description |
|---|---|
d_allocator | Allocator used to supply memory. |
d_stack | The d_stack data member. |