8#ifndef INCLUDED_BALJSN_DATUMENCODEROPTIONS
9#define INCLUDED_BALJSN_DATUMENCODEROPTIONS
140#include <balscm_version.h>
146#include <bsl_limits.h>
147#include <bsl_iosfwd.h>
155namespace baljsn {
class DatumEncoderOptions; }
179 bool d_encodeQuotedDecimal64;
182 int d_initialIndentLevel;
185 int d_spacesPerLevel;
277 bsl::ostream&
print(bsl::ostream& stream,
319 d_encodingStyle = value;
327 d_initialIndentLevel = value;
335 d_spacesPerLevel = value;
341 d_strictTypes = value;
347 d_encodeQuotedDecimal64 = value;
360 return d_initialIndentLevel;
366 return d_spacesPerLevel;
372 return d_strictTypes;
378 return d_encodeQuotedDecimal64;
413 return rhs.
print(stream, 0, -1);
Definition baljsn_datumencoderoptions.h:169
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
DatumEncoderOptions(const DatumEncoderOptions &original)
void setEncodingStyle(baljsn::EncodingStyle::Value value)
Definition baljsn_datumencoderoptions.h:317
bool strictTypes() const
Return the "StrictTypes" attribute of this object.
Definition baljsn_datumencoderoptions.h:370
DatumEncoderOptions & operator=(const DatumEncoderOptions &rhs)
Assign to this object the value of the specified rhs object.
void setEncodeQuotedDecimal64(bool value)
Definition baljsn_datumencoderoptions.h:345
void setSpacesPerLevel(int value)
Definition baljsn_datumencoderoptions.h:331
int initialIndentLevel() const
Return the "InitialIndentLevel" attribute of this object.
Definition baljsn_datumencoderoptions.h:358
void setStrictTypes(bool value)
Definition baljsn_datumencoderoptions.h:339
~DatumEncoderOptions()
Destroy this object.
static const bool s_DEFAULT_INITIALIZER_ENCODE_QUOTED_DECIMAL64
Definition baljsn_datumencoderoptions.h:194
baljsn::EncodingStyle::Value encodingStyle() const
Return the "EncodingStyle" attribute of this object.
Definition baljsn_datumencoderoptions.h:352
void setInitialIndentLevel(int value)
Definition baljsn_datumencoderoptions.h:323
static const bool s_DEFAULT_INITIALIZER_STRICT_TYPES
Definition baljsn_datumencoderoptions.h:192
int spacesPerLevel() const
Return the "SpacesPerLevel" attribute of this object.
Definition baljsn_datumencoderoptions.h:364
static const int s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL
Definition baljsn_datumencoderoptions.h:196
bool encodeQuotedDecimal64() const
Definition baljsn_datumencoderoptions.h:376
static const int s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL
Definition baljsn_datumencoderoptions.h:198
static const baljsn::EncodingStyle::Value s_DEFAULT_INITIALIZER_ENCODING_STYLE
Definition baljsn_datumencoderoptions.h:201
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition baljsn_datumdecoderoptions.h:113
bool operator==(const DatumDecoderOptions &lhs, const DatumDecoderOptions &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const DatumDecoderOptions &rhs)
bool operator!=(const DatumDecoderOptions &lhs, const DatumDecoderOptions &rhs)
Value
Definition baljsn_encodingstyle.h:78