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

This simply constrained (value&hyphen;semantic) attribute class specifies options for reading 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;

== Synopsis

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/ReadOptions/2constructor-02.adoc[`ReadOptions`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdljsn/ReadOptions/2destructor.adoc[`&#126;ReadOptions`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object and return a non&hyphen;`const` reference to this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/allowTrailingText.adoc[`allowTrailingText`] 
| Return the `allowTrailingText` attribute of this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/maxNestedDepth.adoc[`maxNestedDepth`] 
| Return the `maxNestedDepth` attribute of this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/print.adoc[`print`] 
| Format this object to the specified output `stream` at the optionally specified indentation `level` and return a reference to the modifiable `stream`&period; If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects&period; Each line is indented by the absolute value of `level &ast; spacesPerLevel`&period; If `level` is negative, suppress indentation of the first line&period; If `spacesPerLevel` is negative, suppress line breaks and format the entire output on one line&period; If `stream` is initially invalid, this operation has no effect&period; Note that a trailing newline is provided in multiline mode only&period; Also note that the format is not fully specified, and can change without notice&period;
| xref:BloombergLP/bdljsn/ReadOptions/reset.adoc[`reset`] 
| Reset this object to the default value (i&period;e&period;, its value upon default construction) and return a non&hyphen;`const` reference to this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/setAllowTrailingText.adoc[`setAllowTrailingText`] 
| Set the `allowTrailingText` attribute of this object to th specified `value` and return a non&hyphen;`const` reference to this object&period;
| xref:BloombergLP/bdljsn/ReadOptions/setMaxNestedDepth.adoc[`setMaxNestedDepth`] 
| Set the `maxNestedDepth` attribute of this object to the specified `value` and return a non&hyphen;`const` reference to this object&period; The behavior is undefined unless `0 &lt; value`&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/ReadOptions/s_DEFAULT_INITIALIZER_ALLOW_TRAILING_TEXT.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;ALLOW&lowbar;TRAILING&lowbar;TEXT`] 
| Default value for the `allowTrailingText` attribute&period;
| xref:BloombergLP/bdljsn/ReadOptions/s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH.adoc[`s&lowbar;DEFAULT&lowbar;INITIALIZER&lowbar;MAX&lowbar;NESTED&lowbar;DEPTH`] 
| Default value for the `maxNestedDepth` attribute&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/operator_not_eq-060.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` attribute objects do not have the same value, and `false` otherwise&period; Two attribute objects do not have the same value if one or more respective attributes do not have the same value&period;
| xref:BloombergLP/bdljsn/operator_eq-063.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` attribute objects have the same value, and `false` otherwise&period; Two attribute objects have the same value if each respective attribute has the same value&period;
|===


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