class
#include <eckit/log/JSON.h>
Formatting
Public types
- enum BitFlags { COMPACT = 0, INDENT_DICT = (1 << 1), INDENT_LIST = (1 << 2), INDENT_ALL = (INDENT_DICT | INDENT_LIST) }
Public static functions
- static auto compact() -> Formatting
- Create compact formatting.
- static auto indent(int indentation = 2) -> Formatting
- Create formatting that indents dictionaries.
Constructors, destructors, conversion operators
- Formatting() defaulted
- Default constructor, creates compact formatting.
- Formatting(int flags, int indentation = 2)
Public functions
- auto indentation() const -> int
- auto flags() const -> int
Function documentation
eckit:: JSON:: Formatting:: Formatting(int flags,
int indentation = 2)
Parameters | |
---|---|
flags | BitFlags that describe formatting |
indentation | Number of spaces used for indentation |
Construct formatting with given indentation
int eckit:: JSON:: Formatting:: indentation() const
Returns | Number of spaces used for indentation |
---|
int eckit:: JSON:: Formatting:: flags() const
Returns | BitFlags that describe formatting |
---|