8#ifndef INCLUDED_BALXML_DECODEROPTIONS
9#define INCLUDED_BALXML_DECODEROPTIONS
43#include <bslalg_typetraits.h>
55#include <bsl_iosfwd.h>
56#include <bsl_limits.h>
60namespace balxml {
class DecoderOptions; }
83 bool d_skipUnknownElements;
86 bool d_validateInputIsUtf8;
89 bool d_validateRootTag;
151#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
152 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
167#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
168 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
185 template <
typename t_MANIPULATOR>
194 template <
typename t_MANIPULATOR>
203 template <
typename t_MANIPULATOR>
241 bsl::ostream&
print(bsl::ostream& stream,
243 int spacesPerLevel = 4)
const;
251 template <
typename t_ACCESSOR>
259 template <
typename t_ACCESSOR>
268 template <
typename t_ACCESSOR>
271 int nameLength)
const;
329template <
typename t_MANIPULATOR>
362template <
typename t_MANIPULATOR>
365 enum { NOT_FOUND = -1 };
388template <
typename t_MANIPULATOR>
390 t_MANIPULATOR& manipulator,
394 enum { NOT_FOUND = -1 };
398 if (0 == attributeInfo) {
414 d_formattingMode = value;
420 d_skipUnknownElements = value;
426 d_validateInputIsUtf8 = value;
432 d_validateRootTag = value;
436template <
typename t_ACCESSOR>
469template <
typename t_ACCESSOR>
472 enum { NOT_FOUND = -1 };
495template <
typename t_ACCESSOR>
497 t_ACCESSOR& accessor,
499 int nameLength)
const
501 enum { NOT_FOUND = -1 };
505 if (0 == attributeInfo) {
521 return d_formattingMode;
527 return d_skipUnknownElements;
533 return d_validateInputIsUtf8;
539 return d_validateRootTag;
563 return !(lhs == rhs);
568 bsl::ostream& stream,
571 return rhs.
print(stream, 0, -1);
Definition balxml_decoderoptions.h:72
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition balxml_decoderoptions.h:330
int accessAttributes(t_ACCESSOR &accessor) const
Definition balxml_decoderoptions.h:437
DecoderOptions & operator=(const DecoderOptions &rhs)
Assign to this object the value of the specified rhs object.
void setMaxDepth(int value)
Definition balxml_decoderoptions.h:406
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition balxml_decoderoptions.h:126
static const bool DEFAULT_INITIALIZER_VALIDATE_ROOT_TAG
Definition balxml_decoderoptions.h:124
int formattingMode() const
Return the value of the "FormattingMode" attribute of this object.
Definition balxml_decoderoptions.h:519
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition balxml_decoderoptions.h:363
static const char CLASS_NAME[]
Definition balxml_decoderoptions.h:114
void setValidateRootTag(bool value)
Definition balxml_decoderoptions.h:430
@ NUM_ATTRIBUTES
Definition balxml_decoderoptions.h:102
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
void setValidateInputIsUtf8(bool value)
Definition balxml_decoderoptions.h:424
~DecoderOptions()
Destroy this object.
static const bool DEFAULT_INITIALIZER_SKIP_UNKNOWN_ELEMENTS
Definition balxml_decoderoptions.h:120
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
void setSkipUnknownElements(bool value)
Definition balxml_decoderoptions.h:418
static const int DEFAULT_INITIALIZER_FORMATTING_MODE
Definition balxml_decoderoptions.h:118
DecoderOptions(const DecoderOptions &original)
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition balxml_decoderoptions.h:470
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
static const bool DEFAULT_INITIALIZER_VALIDATE_INPUT_IS_UTF8
Definition balxml_decoderoptions.h:122
void setFormattingMode(int value)
Definition balxml_decoderoptions.h:412
int maxDepth() const
Return the value of the "MaxDepth" attribute of this object.
Definition balxml_decoderoptions.h:513
@ ATTRIBUTE_ID_VALIDATE_INPUT_IS_UTF8
Definition balxml_decoderoptions.h:97
@ ATTRIBUTE_ID_MAX_DEPTH
Definition balxml_decoderoptions.h:94
@ ATTRIBUTE_ID_VALIDATE_ROOT_TAG
Definition balxml_decoderoptions.h:98
@ ATTRIBUTE_ID_SKIP_UNKNOWN_ELEMENTS
Definition balxml_decoderoptions.h:96
@ ATTRIBUTE_ID_FORMATTING_MODE
Definition balxml_decoderoptions.h:95
DecoderOptions()
Create an object of type DecoderOptions having the default value.
bool validateRootTag() const
Return the value of the "ValidateRootTag" attribute of this object.
Definition balxml_decoderoptions.h:537
bool validateInputIsUtf8() const
Definition balxml_decoderoptions.h:531
static const int DEFAULT_INITIALIZER_MAX_DEPTH
Definition balxml_decoderoptions.h:116
bool skipUnknownElements() const
Definition balxml_decoderoptions.h:525
@ ATTRIBUTE_INDEX_VALIDATE_ROOT_TAG
Definition balxml_decoderoptions.h:110
@ ATTRIBUTE_INDEX_VALIDATE_INPUT_IS_UTF8
Definition balxml_decoderoptions.h:109
@ ATTRIBUTE_INDEX_FORMATTING_MODE
Definition balxml_decoderoptions.h:107
@ ATTRIBUTE_INDEX_MAX_DEPTH
Definition balxml_decoderoptions.h:106
@ ATTRIBUTE_INDEX_SKIP_UNKNOWN_ELEMENTS
Definition balxml_decoderoptions.h:108
#define BDLAT_DECL_SEQUENCE_WITH_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:275
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
Definition balxml_base64parser.h:150
bsl::ostream & operator<<(bsl::ostream &stream, const ConfigSchema &schema)
bool operator==(const DecoderOptions &lhs, const DecoderOptions &rhs)
bool operator!=(const DecoderOptions &lhs, const DecoderOptions &rhs)
Definition bdlat_attributeinfo.h:137
int d_id
Definition bdlat_attributeinfo.h:140