8#ifndef INCLUDED_BDLDE_BASE64ENCODEROPTIONS
9#define INCLUDED_BDLDE_BASE64ENCODEROPTIONS
196#include <bdlde_base64alphabet.h>
202#include <bsl_iosfwd.h>
312 bsl::ostream&
print(bsl::ostream& stream,
314 int spacesPerLevel = 4)
const;
372Base64EncoderOptions::Base64EncoderOptions(
int maxLineLength,
375: d_maxLineLength(maxLineLength)
376, d_alphabet(alphabet)
381 Base64Alphabet::e_URL == alphabet);
398 Base64Alphabet::e_BASIC,
419 Base64Alphabet::e_URL == value);
425void Base64EncoderOptions::setIsPadded(
bool value)
431void Base64EncoderOptions::setMaxLineLength(
int value)
435 d_maxLineLength = value;
446bool Base64EncoderOptions::isPadded()
const
452int Base64EncoderOptions::maxLineLength()
const
454 return d_maxLineLength;
Definition bdlde_base64encoderoptions.h:214
static Base64EncoderOptions custom(int maxLineLength, Base64Alphabet::Enum alphabet, bool padded)
Definition bdlde_base64encoderoptions.h:386
~Base64EncoderOptions()=default
Destroy this object.
static Base64EncoderOptions standard(bool padded=true)
Definition bdlde_base64encoderoptions.h:403
bool isPadded() const
Return the value of the isPadded attribute.
Definition bdlde_base64encoderoptions.h:446
int maxLineLength() const
Return the value of the maxLineLength attribute.
Definition bdlde_base64encoderoptions.h:452
@ k_MIME_MAX_LINE_LENGTH
Definition bdlde_base64encoderoptions.h:230
Base64EncoderOptions & operator=(const Base64EncoderOptions &)=default
Default operator=().
static Base64EncoderOptions urlSafe(bool padded=false)
Definition bdlde_base64encoderoptions.h:409
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
void setIsPadded(bool value)
Set the isPadded attribute to the specified value.
Definition bdlde_base64encoderoptions.h:425
void setAlphabet(Base64Alphabet::Enum value)
Definition bdlde_base64encoderoptions.h:416
static Base64EncoderOptions mime()
Definition bdlde_base64encoderoptions.h:395
void setMaxLineLength(int value)
Definition bdlde_base64encoderoptions.h:431
Base64EncoderOptions(const Base64EncoderOptions &)=default
Default copy constructor.
Base64Alphabet::Enum alphabet() const
Return the value of the alphabet attribute.
Definition bdlde_base64encoderoptions.h:440
#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 bslmf_istriviallycopyable.h:329