Options for reading a JSON document.

Synopsis

Declared in <bdljsn_readoptions.h>

class ReadOptions;

Description

This simply constrained (value‐semantic) attribute class specifies options for reading a JSON document. See the for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.

Member Functions

Name

Description

ReadOptions [constructor]

Constructors

~ReadOptions [destructor]

Destroy this object.

operator=

Assign to this object the value of the specified rhs object and return a non‐`const` reference to this object.

allowTrailingText

Return the allowTrailingText attribute of this object.

maxNestedDepth

Return the maxNestedDepth attribute of this object.

print

Format this object to the specified output stream.

reset

Reset this object to the default value (i.e., its value upon default construction) and return a non‐`const` reference to this object.

setAllowTrailingText

Set the allowTrailingText attribute of this object to the specified value and return a non‐`const` reference to this object.

setMaxNestedDepth

Set the maxNestedDepth attribute of this object to the specified value.

Static Data Members

Name

Description

s_DEFAULT_INITIALIZER_ALLOW_TRAILING_TEXT

Default value for the allowTrailingText attribute.

s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH

Default value for the maxNestedDepth attribute.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs do not have the same value.

operator==

Return true if the specified lhs and rhs have the same value.

Created with MrDocs