[#BloombergLP-bdljsn-WriteOptions]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::WriteOptions
:relfileprefix: ../../
:mrdocs:

Options for writing a JSON document&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;writeoptions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class WriteOptions;
----

== Description

This simply constrained (value&hyphen;semantic) attribute class specifies options for writing a JSON document&period; See the  for information on the class attributes&period; Note that the class invariants are identically the constraints on the individual attributes&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/WriteOptions/2constructor-05.adoc[`WriteOptions`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdljsn/WriteOptions/2destructor.adoc[`&#126;WriteOptions`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bdljsn/WriteOptions/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object&period;
| xref:BloombergLP/bdljsn/WriteOptions/escapeForwardSlash.adoc[`escapeForwardSlash`] 
| Return the `escapeForwardSlash` attribute of this object&period;
| xref:BloombergLP/bdljsn/WriteOptions/initialIndentLevel.adoc[`initialIndentLevel`] 
| Return the `initialIndentLevel` attribute of this object&period;
| xref:BloombergLP/bdljsn/WriteOptions/print.adoc[`print`] 
| Format this object to the specified output `stream`&period;
| xref:BloombergLP/bdljsn/WriteOptions/reset.adoc[`reset`] 
| Reset this object to the default value (i&period;e&period;, its value upon default construction)&period;
| xref:BloombergLP/bdljsn/WriteOptions/setEscapeForwardSlash.adoc[`setEscapeForwardSlash`] 
| Set the `escapeForwardSlash` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/WriteOptions/setInitialIndentLevel.adoc[`setInitialIndentLevel`] 
| Set the `initialIndentLevel` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/WriteOptions/setSortMembers.adoc[`setSortMembers`] 
| Set the `sortMembers` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/WriteOptions/setSpacesPerLevel.adoc[`setSpacesPerLevel`] 
| Set the `spacesPerLevel` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/WriteOptions/setStyle.adoc[`setStyle`] 
| Set the `style` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/WriteOptions/sortMembers.adoc[`sortMembers`] 
| Return the `sortMembers` attribute of this object&period;
| xref:BloombergLP/bdljsn/WriteOptions/spacesPerLevel.adoc[`spacesPerLevel`] 
| Return the `spacesPerLevel` attribute of this object&period;
| xref:BloombergLP/bdljsn/WriteOptions/style.adoc[`style`] 
| Return the `style` attribute of this object&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/WriteOptions/s_DEFAULT_INITIALIZER_ESCAPE_FORWARD_SLASH.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;ESCAPE&lowbar;FORWARD&lowbar;SLASH`] 
| Default value for the `escapeForwardSlash` attribute&period;
| xref:BloombergLP/bdljsn/WriteOptions/s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;INITIAL&lowbar;INDENT&lowbar;LEVEL`] 
| Default value for the `initialIndentLevel` attribute&period;
| xref:BloombergLP/bdljsn/WriteOptions/s_DEFAULT_INITIALIZER_SORT_MEMBERS.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;SORT&lowbar;MEMBERS`] 
| Default value for the `sortMembers` attribute&period;
| xref:BloombergLP/bdljsn/WriteOptions/s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;SPACES&lowbar;PER&lowbar;LEVEL`] 
| Default value for the `spacesPerLevel` attribute&period;
| xref:BloombergLP/bdljsn/WriteOptions/s_DEFAULT_INITIALIZER_STYLE.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;STYLE`] 
| Default value for the `style` attribute&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/operator_not_eq-017.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` attribute objects do not have the same value, and `false` otherwise&period;
| xref:BloombergLP/bdljsn/operator_eq-07c9.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` attribute objects have the same value, and `false` otherwise&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
