This simply constrained (value‐semantic) attribute class specifies options for decoding Datum objects in the JSON format. See the section for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.

Synopsis

Declared in <baljsn_datumdecoderoptions.h>

class DatumDecoderOptions;

Member Functions

Name

Description

DatumDecoderOptions [constructor]

Constructors

~DatumDecoderOptions [destructor]

Destroy this object.

operator=

Assign to this object the value of the specified rhs object.

maxNestedDepth

Return the "maxNestedDepth" attribute of this object.

print

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.

reset

Reset this object to the default value (i.e., its value upon default construction).

setMaxNestedDepth

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

Static Data Members

Name

Description

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 attribute objects do not have the same value, and false otherwise. Two attribute objects do not have the same value if one or more respective attributes differ in values.

operator==

Return true if the specified lhs and rhs attribute objects have the same value, and false otherwise. Two attribute objects have the same value if each respective attribute has the same value.

Created with MrDocs