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

Method Options

include/cereal/archives/xml.hpp:117–125  ·  view source on GitHub ↗

Specify specific options for the XMLOutputArchive ! @param precision_ The precision used for floating point numbers @param indent_ Whether to indent each line of XML @param outputType_ Whether to output the type of each serialized object as an attribute @param sizeAttributes_ Whether dynamically sized containers output the size=dynamic attribute */

Source from the content-addressed store, hash-verified

115 @param outputType_ Whether to output the type of each serialized object as an attribute
116 @param sizeAttributes_ Whether dynamically sized containers output the size=dynamic attribute */
117 explicit Options( int precision_ = std::numeric_limits<double>::max_digits10,
118 bool indent_ = true,
119 bool outputType_ = false,
120 bool sizeAttributes_ = true ) :
121 itsPrecision( precision_ ),
122 itsIndent( indent_ ),
123 itsOutputType( outputType_ ),
124 itsSizeAttributes( sizeAttributes_ )
125 { }
126
127 /*! @name Option Modifiers
128 An interface for setting option settings analogous to named parameters.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected