MCPcopy Create free account
hub / github.com/USCiLab/cereal / Options

Method Options

include/cereal/archives/json.hpp:142–147  ·  view source on GitHub ↗

Specify specific options for the JSONOutputArchive ! @param precision The precision used for floating point numbers @param indentChar The type of character to indent with @param indentLength The number of indentChar to use for indentation (0 corresponds to no indentation) */

Source from the content-addressed store, hash-verified

140 @param indentLength The number of indentChar to use for indentation
141 (0 corresponds to no indentation) */
142 explicit Options( int precision = JSONWriter::kDefaultMaxDecimalPlaces,
143 IndentChar indentChar = IndentChar::space,
144 unsigned int indentLength = 4 ) :
145 itsPrecision( precision ),
146 itsIndentChar( static_cast<char>(indentChar) ),
147 itsIndentLength( indentLength ) { }
148
149 private:
150 friend class JSONOutputArchive;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected