.TH "cereal::XMLOutputArchive::Options" 3 "Sat Aug 29 2026 00:42:30" "cereal" \" -*- nroff -*- .ad l .nh .SH NAME cereal::XMLOutputArchive::Options \- A class containing various advanced options for the XML archive\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBOptions\fP (int precision_=std::numeric_limits< double >::max_digits10, bool indent_=true, bool outputType_=false, bool sizeAttributes_=true)" .br .RI "Specify specific options for the \fBXMLOutputArchive\fP\&. " .in -1c .PP .RI "\fBOption Modifiers\fP" .br An interface for setting option settings analogous to named parameters\&. .PP .PP .nf cereal::XMLOutputArchive ar( myStream, cereal::XMLOutputArchive::Options() \&.indent(true) \&.sizeAttributes(false) ); .fi .PP .PP .in +1c .in +1c .ti -1c .RI "\fBOptions\fP & \fBprecision\fP (int value)" .br .RI "Sets the precision used for floaing point numbers\&. " .ti -1c .RI "\fBOptions\fP & \fBindent\fP (bool enable)" .br .RI "Whether to indent each line of XML\&. " .ti -1c .RI "\fBOptions\fP & \fBoutputType\fP (bool enable)" .br .RI "Whether to output the type of each serialized object as an attribute\&. " .ti -1c .RI "\fBOptions\fP & \fBsizeAttributes\fP (bool enable)" .br .RI "Whether dynamically sized containers (e\&.g\&. vector) output the size=dynamic attribute\&. " .in -1c .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBOptions\fP \fBDefault\fP ()" .br .RI "Default options\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "class \fBXMLOutputArchive\fP" .br .in -1c .SH "Detailed Description" .PP A class containing various advanced options for the XML archive\&. \fBOptions\fP can either be directly passed to the constructor, or chained using the modifier functions for an interface analogous to named parameters .SH "Constructor & Destructor Documentation" .PP .SS "cereal::XMLOutputArchive::Options::Options (int precision_ = \fRstd::numeric_limits::max_digits10\fP, bool indent_ = \fRtrue\fP, bool outputType_ = \fRfalse\fP, bool sizeAttributes_ = \fRtrue\fP)\fR [inline]\fP, \fR [explicit]\fP" .PP Specify specific options for the \fBXMLOutputArchive\fP\&. .PP \fBParameters\fP .RS 4 \fIprecision_\fP The precision used for floating point numbers .br \fIindent_\fP Whether to indent each line of XML .br \fIoutputType_\fP Whether to output the type of each serialized object as an attribute .br \fIsizeAttributes_\fP Whether dynamically sized containers output the size=dynamic attribute .RE .PP .SH "Author" .PP Generated automatically by Doxygen for cereal from the source code\&.