8#ifndef INCLUDED_BDLJSN_WRITEOPTIONS
9#define INCLUDED_BDLJSN_WRITEOPTIONS
111#include <bdlscm_version.h>
115#include <bsl_iosfwd.h>
139 int d_initialIndentLevel;
145 int d_spacesPerLevel;
237 bsl::ostream&
print(bsl::ostream& stream,
273: d_initialIndentLevel(original.d_initialIndentLevel)
274, d_sortMembers (original.d_sortMembers)
275, d_spacesPerLevel (original.d_spacesPerLevel)
276, d_style (original.d_style)
291 d_initialIndentLevel = rhs.d_initialIndentLevel;
292 d_sortMembers = rhs.d_sortMembers;
293 d_spacesPerLevel = rhs.d_spacesPerLevel;
294 d_style = rhs.d_style;
304 d_initialIndentLevel = value;
311 d_sortMembers = value;
320 d_spacesPerLevel = value;
335 return d_initialIndentLevel;
341 return d_sortMembers;
347 return d_spacesPerLevel;
383 return rhs.
print(stream, 0, -1);
Definition bdljsn_writeoptions.h:134
WriteOptions & setSortMembers(bool value)
Definition bdljsn_writeoptions.h:309
WriteOptions & setSpacesPerLevel(int value)
Definition bdljsn_writeoptions.h:316
int initialIndentLevel() const
Return the initialIndentLevel attribute of this object.
Definition bdljsn_writeoptions.h:333
static const int s_DEFAULT_INITIALIZER_INITIAL_INDENT_LEVEL
Definition bdljsn_writeoptions.h:152
static const int s_DEFAULT_INITIALIZER_SPACES_PER_LEVEL
Definition bdljsn_writeoptions.h:156
WriteOptions & setInitialIndentLevel(int value)
Definition bdljsn_writeoptions.h:300
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
bool sortMembers() const
Return the sortMembers attribute of this object.
Definition bdljsn_writeoptions.h:339
~WriteOptions()
Destroy this object.
Definition bdljsn_writeoptions.h:281
int spacesPerLevel() const
Return the spacesPerLevel attribute of this object.
Definition bdljsn_writeoptions.h:345
WriteOptions & setStyle(bdljsn::WriteStyle::Enum value)
Definition bdljsn_writeoptions.h:325
bdljsn::WriteStyle::Enum style() const
Return the style attribute of this object.
Definition bdljsn_writeoptions.h:351
static const bool s_DEFAULT_INITIALIZER_SORT_MEMBERS
Definition bdljsn_writeoptions.h:154
WriteOptions & operator=(const WriteOptions &rhs)
Definition bdljsn_writeoptions.h:289
static const bdljsn::WriteStyle::Enum s_DEFAULT_INITIALIZER_STYLE
Definition bdljsn_writeoptions.h:159
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdljsn_error.h:143
bool operator!=(const Error &lhs, const Error &rhs)
bool operator==(const Error &lhs, const Error &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Error &object)
Enum
Definition bdljsn_writestyle.h:127