NDDEM
|
A class containing various advanced options for the JSON archive. More...
#include <json.hpp>
Public Types | |
enum class | IndentChar : char { space = ' ' , tab = '\t' , newline = '\n' , carriage_return = '\r' } |
The character to use for indenting. More... | |
Public Member Functions | |
Options (int precision=JSONWriter::kDefaultMaxDecimalPlaces, IndentChar indentChar=IndentChar::space, unsigned int indentLength=4) | |
Specify specific options for the JSONOutputArchive. More... | |
Static Public Member Functions | |
static Options | Default () |
Default options. More... | |
static Options | NoIndent () |
Default options with no indentation. More... | |
Private Attributes | |
int | itsPrecision |
char | itsIndentChar |
unsigned int | itsIndentLength |
Friends | |
class | JSONOutputArchive |
A class containing various advanced options for the JSON archive.
|
strong |
|
inlineexplicit |
Specify specific options for the JSONOutputArchive.
precision | The precision used for floating point numbers |
indentChar | The type of character to indent with |
indentLength | The number of indentChar to use for indentation (0 corresponds to no indentation) |
|
inlinestatic |
Default options.
|
inlinestatic |
Default options with no indentation.
|
friend |
|
private |
|
private |
|
private |