BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlde::Base64DecoderOptions Class Reference

#include <bdlde_base64decoderoptions.h>

Public Member Functions

 Base64DecoderOptions (const Base64DecoderOptions &)=default
 Default copy constructor.
 
 ~Base64DecoderOptions ()=default
 Destroy this object.
 
Base64DecoderOptionsoperator= (const Base64DecoderOptions &)=default
 Default operator=().
 
void setAlphabet (Base64Alphabet::Enum value)
 
void setIgnoreMode (IgnoreMode::Enum value)
 
void setIsPadded (bool value)
 Set the isPadded attribute to the specified value.
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
Base64Alphabet::Enum alphabet () const
 Return the value of the alphabet attribute.
 
IgnoreMode::Enum ignoreMode () const
 Return the value of the ignoreMode attribute.
 
bool isPadded () const
 Return the value of the isPadded attribute.
 

Static Public Member Functions

static Base64DecoderOptions custom (IgnoreMode::Enum ignoreMode, Base64Alphabet::Enum alphabet, bool padded)
 
static Base64DecoderOptions mime (IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_WHITESPACE)
 
static Base64DecoderOptions standard (IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_NONE, bool padded=true)
 
static Base64DecoderOptions urlSafe (IgnoreMode::Enum ignoreMode=IgnoreMode::e_IGNORE_NONE, bool padded=false)
 

Detailed Description

This class stores the configuration of a Base64Decoder.

See bdlde_base64decoderoptions

Constructor & Destructor Documentation

◆ Base64DecoderOptions()

bdlde::Base64DecoderOptions::Base64DecoderOptions ( const Base64DecoderOptions )
default

◆ ~Base64DecoderOptions()

bdlde::Base64DecoderOptions::~Base64DecoderOptions ( )
default

Member Function Documentation

◆ alphabet()

Base64Alphabet::Enum bdlde::Base64DecoderOptions::alphabet ( ) const
inline

◆ custom()

Base64DecoderOptions bdlde::Base64DecoderOptions::custom ( IgnoreMode::Enum  ignoreMode,
Base64Alphabet::Enum  alphabet,
bool  padded 
)
inlinestatic

Return a Base64DecoderOptions object having the specified alphabet, padded, and ignoreMode attribute values. The behavior is unless ignoreMode is a defined value of IgnoreMode, and alphabet is a defined value of Base64Alphabet::Enum.

◆ ignoreMode()

Base64IgnoreMode::Enum bdlde::Base64DecoderOptions::ignoreMode ( ) const
inline

◆ isPadded()

bool bdlde::Base64DecoderOptions::isPadded ( ) const
inline

◆ mime()

Base64DecoderOptions bdlde::Base64DecoderOptions::mime ( IgnoreMode::Enum  ignoreMode = IgnoreMode::e_IGNORE_WHITESPACE)
inlinestatic

Return a Base64DecoderOptions object having the attributes alphabet == Base64Alphabet::e_BASIC, isPadded == true, and the specified ignoreMode. If ignoreMode is not specified, it defaults to e_IGNORE_WHITESPACE. This conforms to RFC 2045.

◆ operator=()

Base64DecoderOptions & bdlde::Base64DecoderOptions::operator= ( const Base64DecoderOptions )
default

◆ print()

bsl::ostream & bdlde::Base64DecoderOptions::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.

◆ setAlphabet()

void bdlde::Base64DecoderOptions::setAlphabet ( Base64Alphabet::Enum  value)
inline

Set the alphabet attribute to the specified value. The behavior is undefined unless value is either e_BASIC or e_UTL.

◆ setIgnoreMode()

void bdlde::Base64DecoderOptions::setIgnoreMode ( IgnoreMode::Enum  value)
inline

Set the ignoreMode attribute to the specified value. The behavior is undefined unless value is valid value of the IgnoreMode enum.

◆ setIsPadded()

void bdlde::Base64DecoderOptions::setIsPadded ( bool  value)
inline

◆ standard()

Base64DecoderOptions bdlde::Base64DecoderOptions::standard ( IgnoreMode::Enum  ignoreMode = IgnoreMode::e_IGNORE_NONE,
bool  padded = true 
)
inlinestatic

Return a Base64DecoderOptions object having the specified ignoreMode and padded, and the attribute alphabet == Base64Alphabet::e_BASIC. If padded is not specified, it defaults to true. If ignoreMode is not specified, it defaults to e_IGNORE_NOTHING. This conforms to RFC 4648 section 4.

◆ urlSafe()

Base64DecoderOptions bdlde::Base64DecoderOptions::urlSafe ( IgnoreMode::Enum  ignoreMode = IgnoreMode::e_IGNORE_NONE,
bool  padded = false 
)
inlinestatic

Return a Base64DecoderOptions object having the attributes alphabet == Base64Alphabet::e_URL, isPadded == false and the specified ignoreMode. If ignoreMode is not specified, it defaults to e_IGNORE_NOTHING. This conforms to RFC 4648 section


The documentation for this class was generated from the following file: