[#BloombergLP-baljsn-DatumEncoderOptions] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::DatumEncoderOptions :relfileprefix: ../../ :mrdocs: This simply constrained (value‐semantic) attribute class specifies options for encoding `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_datumencoderoptions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DatumEncoderOptions; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/DatumEncoderOptions/2constructor-08.adoc[`DatumEncoderOptions`] [.small]#[constructor]# | Constructors | xref:BloombergLP/baljsn/DatumEncoderOptions/2destructor.adoc[`~DatumEncoderOptions`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/baljsn/DatumEncoderOptions/operator_assign.adoc[`operator=`] | Assign to this object the value of the specified `rhs` object. | xref:BloombergLP/baljsn/DatumEncoderOptions/encodeQuotedDecimal64.adoc[`encodeQuotedDecimal64`] | Return the value of the "EncodeQuotedDecimal64" attribute of this object. | xref:BloombergLP/baljsn/DatumEncoderOptions/encodingStyle.adoc[`encodingStyle`] | Return the "EncodingStyle" attribute of this object. | xref:BloombergLP/baljsn/DatumEncoderOptions/initialIndentLevel.adoc[`initialIndentLevel`] | Return the "InitialIndentLevel" attribute of this object. | xref:BloombergLP/baljsn/DatumEncoderOptions/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`. 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. | xref:BloombergLP/baljsn/DatumEncoderOptions/reset.adoc[`reset`] | Reset this object to the default value (i.e., its value upon default construction). | xref:BloombergLP/baljsn/DatumEncoderOptions/setEncodeQuotedDecimal64.adoc[`setEncodeQuotedDecimal64`] | Set the "EncodeQuotedDecimal64" attribute of this object to the specified `value`. | xref:BloombergLP/baljsn/DatumEncoderOptions/setEncodingStyle.adoc[`setEncodingStyle`] | Set the "EncodingStyle" attribute of this object to the specified `value`. | xref:BloombergLP/baljsn/DatumEncoderOptions/setInitialIndentLevel.adoc[`setInitialIndentLevel`] | Set the "InitialIndentLevel" attribute of this object to the specified `value`. The behavior is undefined unless `0 <= value`. | xref:BloombergLP/baljsn/DatumEncoderOptions/setSpacesPerLevel.adoc[`setSpacesPerLevel`] | Set the "SpacesPerLevel" attribute of this object to the specified `value`. The behavior is undefined unless `0 <= value`. | xref:BloombergLP/baljsn/DatumEncoderOptions/setStrictTypes.adoc[`setStrictTypes`] | Set the "StrictTypes" attribute of this object to the specified `value`. | xref:BloombergLP/baljsn/DatumEncoderOptions/spacesPerLevel.adoc[`spacesPerLevel`] | Return the "SpacesPerLevel" attribute of this object. | xref:BloombergLP/baljsn/DatumEncoderOptions/strictTypes.adoc[`strictTypes`] | Return the "StrictTypes" attribute of this object. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/DatumEncoderOptions/s_DEFAULT_INITIALIZER_ENCODE_QUOTED_DECIMAL64.adoc[`s_DEFAULT_INITIALIZER_ENCODE_QUOTED_DECIMAL64`] | Default value for the `encodeQuotedDecimal64` attribute. | xref:BloombergLP/baljsn/DatumEncoderOptions/s_DEFAULT_INITIALIZER_ENCODING_STYLE.adoc[`s_DEFAULT_INITIALIZER_ENCODING_STYLE`] | Default value for the `encodingStyle` attribute. | xref:BloombergLP/baljsn/DatumEncoderOptions/s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL.adoc[`s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL`] | Default value for the `initialIndentLevel` attribute. | xref:BloombergLP/baljsn/DatumEncoderOptions/s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL.adoc[`s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL`] | Default value for the `spacesPerLevel` attribute. | xref:BloombergLP/baljsn/DatumEncoderOptions/s_DEFAULT_INITIALIZER_STRICT_TYPES.adoc[`s_DEFAULT_INITIALIZER_STRICT_TYPES`] | Default value for the `strictTypes` attribute. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/operator_not_eq-06f.adoc[`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. | xref:BloombergLP/baljsn/operator_eq-010.adoc[`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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#