Options for encoding Datum objects in the JSON format.

Synopsis

Declared in <baljsn_datumencoderoptions.h>

class DatumEncoderOptions;

Member Functions

Name

Description

DatumEncoderOptions [constructor]

Constructors

~DatumEncoderOptions [destructor]

Destroy this object.

operator=

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

encodeQuotedDecimal64

Return the value of the "EncodeQuotedDecimal64" attribute of this object.

encodingStyle

Return the "EncodingStyle" attribute of this object.

initialIndentLevel

Return the "InitialIndentLevel" 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).

setEncodeQuotedDecimal64

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

setEncodingStyle

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

setInitialIndentLevel

Set the "InitialIndentLevel" attribute of this object to the specified value. The behavior is undefined unless 0 <= value.

setSpacesPerLevel

Set the "SpacesPerLevel" attribute of this object to the specified value. The behavior is undefined unless 0 <= value.

setStrictTypes

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

spacesPerLevel

Return the "SpacesPerLevel" attribute of this object.

strictTypes

Return the "StrictTypes" attribute of this object.

Static Data Members

Name

Description

s_DEFAULT_INITIALIZER_ENCODE_QUOTED_DECIMAL64

Default value for the encodeQuotedDecimal64 attribute.

s_DEFAULT_INITIALIZER_ENCODING_STYLE

Default value for the encodingStyle attribute.

s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL

Default value for the initialIndentLevel attribute.

s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL

Default value for the spacesPerLevel attribute.

s_DEFAULT_INITIALIZER_STRICT_TYPES

Default value for the strictTypes 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.

operator==

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

Created with MrDocs