BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlde::Base64DecoderOptions Class Reference

#include <bdlde_base64decoderoptions.h>

Detailed Description

This class stores the configuration of a Base64Decoder.

See bdlde_base64decoderoptions

Public Member Functions

 Base64DecoderOptions (const Base64DecoderOptions &)=default
 
 ~Base64DecoderOptions ()=default
 
Base64DecoderOptionsoperator= (const Base64DecoderOptions &)=default
 
void setAlphabet (Base64Alphabet::Enum value)
 
void setIgnoreMode (IgnoreMode::Enum value)
 
void setIsPadded (bool value)
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
Base64Alphabet::Enum alphabet () const
 
IgnoreMode::Enum ignoreMode () const
 
bool isPadded () const
 

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)
 

Constructor & Destructor Documentation

◆ Base64DecoderOptions()

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

Default copy constructor.

◆ ~Base64DecoderOptions()

bdlde::Base64DecoderOptions::~Base64DecoderOptions ( )
default

Destroy this object.

Member Function Documentation

◆ alphabet()

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

Return the value of the alphabet attribute.

◆ 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

Return the value of the ignoreMode attribute.

◆ isPadded()

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

Return the value of the isPadded attribute.

◆ 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

Default operator=().

◆ 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
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.

Precondition
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.

Precondition
The behavior is undefined unless value is valid value of the IgnoreMode enum.

◆ setIsPadded()

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

Set the isPadded attribute to the specified value.

◆ 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: