BloombergLP::bdlde::Base64DecoderOptions

This class stores the configuration of a Base64Decoder.

Synopsis

Declared in <bdlde_base64decoderoptions.h>

class Base64DecoderOptions;

Member Functions

NameDescription
alphabet Return the value of the alphabet attribute.
ignoreMode Return the value of the ignoreMode attribute.
isPadded Return the value of the isPadded attribute.
print 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 Set the alphabet attribute to the specified value. The behavior is undefined unless value is either e_BASIC or e_UTL.
setIgnoreMode Set the ignoreMode attribute to the specified value. The behavior is undefined unless value is valid value of the IgnoreMode enum.
setIsPadded Set the isPadded attribute to the specified value.

Static Member Functions

NameDescription
custom 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.
mime 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.
standard 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 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 5.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs attribute objects do not have the same value, and false otherwise. Two attribute objects do not have the same value if one or more respective attributes differ in values.
operator==Return true if the specified lhs and rhs attribute objects have the same value, and false otherwise. Two attribute objects have the same value if each respective attribute has the same value.