| cereal::JSONOutputArchive::Options(3) | Library Functions Manual | cereal::JSONOutputArchive::Options(3) |
NAME
cereal::JSONOutputArchive::Options - A class containing various advanced options for the JSON archive.
SYNOPSIS
#include </home/build/include/cereal/archives/json.hpp>
Public Types
enum class IndentChar : char { space = ' ',
tab = '', newline = '0, carriage_return = '' }
The character to use for indenting.
Public Member Functions
Options (int
precision=JSONWriter::kDefaultMaxDecimalPlaces, IndentChar
indentChar=IndentChar::space, unsigned int indentLength=4)
Specify specific options for the JSONOutputArchive.
Static Public Member Functions
static Options Default ()
Default options. static Options NoIndent ()
Default options with no indentation.
Friends
class JSONOutputArchive
Detailed Description
A class containing various advanced options for the JSON archive.
Constructor & Destructor Documentation
cereal::JSONOutputArchive::Options::Options (int precision = JSONWriter::kDefaultMaxDecimalPlaces, IndentChar indentChar = IndentChar::space, unsigned int indentLength = 4) [inline], [explicit]
Specify specific options for the JSONOutputArchive.
Parameters
indentChar The type of character to indent with
indentLength The number of indentChar to use for indentation (0 corresponds to no indentation)
Author
Generated automatically by Doxygen for cereal from the source code.
| Mon Oct 26 2026 20:39:03 | cereal |