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; }
180 bool d_encodeQuotedDecimal64;
183 int d_initialIndentLevel;
186 int d_spacesPerLevel;
281 bsl::ostream&
print(bsl::ostream& stream,
323 d_encodingStyle = value;
331 d_initialIndentLevel = value;
339 d_spacesPerLevel = value;
345 d_strictTypes = value;
351 d_encodeQuotedDecimal64 = value;
364 return d_initialIndentLevel;
370 return d_spacesPerLevel;
376 return d_strictTypes;
382 return d_encodeQuotedDecimal64;
395 return lhs.strictTypes() == rhs.strictTypes()
396 && lhs.initialIndentLevel() == rhs.initialIndentLevel()
397 && lhs.spacesPerLevel() == rhs.spacesPerLevel()
398 && lhs.encodingStyle() == rhs.encodingStyle()
399 && lhs.encodeQuotedDecimal64() == rhs.encodeQuotedDecimal64();
406 return lhs.strictTypes() !=
rhs.strictTypes()
407 ||
lhs.initialIndentLevel() !=
rhs.initialIndentLevel()
408 ||
lhs.spacesPerLevel() !=
rhs.spacesPerLevel()
409 ||
lhs.encodingStyle() !=
rhs.encodingStyle()
410 ||
lhs.encodeQuotedDecimal64() !=
rhs.encodeQuotedDecimal64();
417 return rhs.print(stream, 0, -1);
Definition baljsn_datumencoderoptions.h:170
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:321
bool strictTypes() const
Return the "StrictTypes" attribute of this object.
Definition baljsn_datumencoderoptions.h:374
DatumEncoderOptions & operator=(const DatumEncoderOptions &rhs)
Assign to this object the value of the specified rhs object.
void setEncodeQuotedDecimal64(bool value)
Definition baljsn_datumencoderoptions.h:349
void setSpacesPerLevel(int value)
Definition baljsn_datumencoderoptions.h:335
int initialIndentLevel() const
Return the "InitialIndentLevel" attribute of this object.
Definition baljsn_datumencoderoptions.h:362
void setStrictTypes(bool value)
Definition baljsn_datumencoderoptions.h:343
~DatumEncoderOptions()
Destroy this object.
static const bool s_DEFAULT_INITIALIZER_ENCODE_QUOTED_DECIMAL64
Definition baljsn_datumencoderoptions.h:195
baljsn::EncodingStyle::Value encodingStyle() const
Return the "EncodingStyle" attribute of this object.
Definition baljsn_datumencoderoptions.h:356
void setInitialIndentLevel(int value)
Definition baljsn_datumencoderoptions.h:327
static const bool s_DEFAULT_INITIALIZER_STRICT_TYPES
Definition baljsn_datumencoderoptions.h:193
int spacesPerLevel() const
Return the "SpacesPerLevel" attribute of this object.
Definition baljsn_datumencoderoptions.h:368
static const int s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL
Definition baljsn_datumencoderoptions.h:197
bool encodeQuotedDecimal64() const
Definition baljsn_datumencoderoptions.h:380
static const int s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL
Definition baljsn_datumencoderoptions.h:199
static const baljsn::EncodingStyle::Value s_DEFAULT_INITIALIZER_ENCODING_STYLE
Definition baljsn_datumencoderoptions.h:202
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition baljsn_convertfromjsonoptions.h:112
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)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Value
Definition baljsn_encodingstyle.h:80