8#ifndef INCLUDED_BDLJSN_READOPTIONS
9#define INCLUDED_BDLJSN_READOPTIONS
108#include <bdlscm_version.h>
110#include <bsl_iosfwd.h>
133 bool d_allowTrailingText;
136 int d_maxNestedDepth;
203 bsl::ostream&
print(bsl::ostream& stream,
205 int spacesPerLevel = 4)
const;
238: d_allowTrailingText(original.d_allowTrailingText)
239, d_maxNestedDepth (original.d_maxNestedDepth)
253 d_allowTrailingText = rhs.d_allowTrailingText;
254 d_maxNestedDepth = rhs.d_maxNestedDepth;
262 d_allowTrailingText = value;
271 d_maxNestedDepth = value;
279 return d_allowTrailingText;
285 return d_maxNestedDepth;
295 return lhs.maxNestedDepth() == rhs.maxNestedDepth()
296 && lhs.allowTrailingText() == rhs.allowTrailingText();
303 return lhs.maxNestedDepth() !=
rhs.maxNestedDepth()
304 ||
lhs.allowTrailingText() !=
rhs.allowTrailingText();
311 return rhs.print(stream, 0, -1);
Definition bdljsn_readoptions.h:128
ReadOptions & operator=(const ReadOptions &rhs)
Definition bdljsn_readoptions.h:251
~ReadOptions()
Destroy this object.
Definition bdljsn_readoptions.h:244
int maxNestedDepth() const
Return the maxNestedDepth attribute of this object.
Definition bdljsn_readoptions.h:283
static const bool s_DEFAULT_INITIALIZER_ALLOW_TRAILING_TEXT
Definition bdljsn_readoptions.h:140
static const int s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH
Definition bdljsn_readoptions.h:141
ReadOptions & setMaxNestedDepth(int value)
Definition bdljsn_readoptions.h:267
bool allowTrailingText() const
Return the allowTrailingText attribute of this object.
Definition bdljsn_readoptions.h:277
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
ReadOptions & setAllowTrailingText(bool value)
Definition bdljsn_readoptions.h:260
#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 bdljsn_error.h:142
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)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917