8#ifndef INCLUDED_BDLDE_BASE64DECODEROPTIONS
9#define INCLUDED_BDLDE_BASE64DECODEROPTIONS
203#include <bdlde_base64alphabet.h>
210#include <bsl_iosfwd.h>
283 bool padded =
false);
322 bsl::ostream&
print(bsl::ostream& stream,
324 int spacesPerLevel = 4)
const;
381Base64DecoderOptions::Base64DecoderOptions(IgnoreMode::Enum ignoreMode,
384: d_ignoreMode(ignoreMode)
385, d_alphabet(alphabet)
388 BSLS_ASSERT(Base64IgnoreMode::e_IGNORE_NONE == ignoreMode ||
389 Base64IgnoreMode::e_IGNORE_WHITESPACE == ignoreMode ||
390 Base64IgnoreMode::e_IGNORE_UNRECOGNIZED == ignoreMode);
392 Base64Alphabet::e_URL == alphabet);
411 Base64Alphabet::e_BASIC,
421 Base64Alphabet::e_BASIC,
430 Base64Alphabet::e_URL,
439 Base64Alphabet::e_URL == value);
445void Base64DecoderOptions::setIsPadded(
bool value)
455 d_ignoreMode = value;
472bool Base64DecoderOptions::isPadded()
const
Definition bdlde_base64decoderoptions.h:222
Base64DecoderOptions & operator=(const Base64DecoderOptions &)=default
Default operator=().
Base64Alphabet::Enum alphabet() const
Return the value of the alphabet attribute.
Definition bdlde_base64decoderoptions.h:460
static Base64DecoderOptions urlSafe(IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_NONE, bool padded=false)
Definition bdlde_base64decoderoptions.h:426
void setIsPadded(bool value)
Set the isPadded attribute to the specified value.
Definition bdlde_base64decoderoptions.h:445
void setAlphabet(Base64Alphabet::Enum value)
Definition bdlde_base64decoderoptions.h:436
void setIgnoreMode(IgnoreMode::Enum value)
Definition bdlde_base64decoderoptions.h:451
static Base64DecoderOptions custom(IgnoreMode::Enum ignoreMode, Base64Alphabet::Enum alphabet, bool padded)
Definition bdlde_base64decoderoptions.h:397
static Base64DecoderOptions mime(IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_WHITESPACE)
Definition bdlde_base64decoderoptions.h:408
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Base64DecoderOptions(const Base64DecoderOptions &)=default
Default copy constructor.
IgnoreMode::Enum ignoreMode() const
Return the value of the ignoreMode attribute.
Definition bdlde_base64decoderoptions.h:466
~Base64DecoderOptions()=default
Destroy this object.
static Base64DecoderOptions standard(IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_NONE, bool padded=true)
Definition bdlde_base64decoderoptions.h:416
bool isPadded() const
Return the value of the isPadded attribute.
Definition bdlde_base64decoderoptions.h:472
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
Definition bdlde_base64alphabet.h:118
bsl::ostream & operator<<(bsl::ostream &stream, Base64Alphabet::Enum value)
Definition bdlb_printmethods.h:283
Enum
Definition bdlde_base64alphabet.h:135
Definition bdlde_base64ignoremode.h:133
Enum
Definition bdlde_base64ignoremode.h:136
@ e_IGNORE_WHITESPACE
Definition bdlde_base64ignoremode.h:139
@ e_IGNORE_NONE
Definition bdlde_base64ignoremode.h:136
Definition bslmf_istriviallycopyable.h:329