10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
tenduke::utl::Base64Decoder Class Referenceabstract

#include <Base64Decoder.h>

Detailed Description

Base64-decoder.

Inheritance diagram for tenduke::utl::Base64Decoder:
tenduke::test::mocks::Base64DecoderMock tenduke::utl::DefaultBase64Decoder

Public Member Functions

virtual std::unique_ptr< BinaryDatadecode (const std::string &base64EncodedString) const =0
 Decodes given Base64-encoded string to bytes.
 
virtual std::unique_ptr< BinaryDatadecode (const char *base64EncodedString, std::size_t numBytes) const =0
 Decodes given Base64-encoded string to bytes.
 
virtual std::string decodeString (const std::string &base64EncodedString) const =0
 Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
 
virtual std::string decodeString (const char *base64EncodedString, std::size_t numBytes) const =0
 Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
 
virtual std::unique_ptr< BinaryDatadecodeUrlSafe (const std::string &base64EncodedString) const =0
 Decodes given URL-safe Base64-encoded string to BinaryData.
 
virtual std::unique_ptr< BinaryDatadecodeUrlSafe (const char *base64EncodedString, std::size_t numBytes) const =0
 Decodes given URL-safe Base64-encoded string to BinaryData.
 
virtual std::string decodeUrlSafeString (const std::string &base64EncodedString) const =0
 Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
 
virtual std::string decodeUrlSafeString (const char *base64EncodedString, std::size_t numBytes) const =0
 Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
 

Member Function Documentation

◆ decode() [1/2]

virtual std::unique_ptr< BinaryData > tenduke::utl::Base64Decoder::decode ( const char * base64EncodedString,
std::size_t numBytes ) const
pure virtual

Decodes given Base64-encoded string to bytes.

Parameters
base64EncodedString-
numByteslength of the data pointer to by parameter base64EncodedString
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decode() [2/2]

virtual std::unique_ptr< BinaryData > tenduke::utl::Base64Decoder::decode ( const std::string & base64EncodedString) const
pure virtual

Decodes given Base64-encoded string to bytes.

Parameters
base64EncodedString-
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeString() [1/2]

virtual std::string tenduke::utl::Base64Decoder::decodeString ( const char * base64EncodedString,
std::size_t numBytes ) const
pure virtual

Decodes given Base64-encoded string to string (assumes that the encoded data is a string).

Parameters
base64EncodedString-
numByteslength of the data pointer to by parameter base64EncodedString
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeString() [2/2]

virtual std::string tenduke::utl::Base64Decoder::decodeString ( const std::string & base64EncodedString) const
pure virtual

Decodes given Base64-encoded string to string (assumes that the encoded data is a string).

Parameters
base64EncodedString-
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeUrlSafe() [1/2]

virtual std::unique_ptr< BinaryData > tenduke::utl::Base64Decoder::decodeUrlSafe ( const char * base64EncodedString,
std::size_t numBytes ) const
pure virtual

Decodes given URL-safe Base64-encoded string to BinaryData.

Parameters
base64EncodedString-
numBytes-
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeUrlSafe() [2/2]

virtual std::unique_ptr< BinaryData > tenduke::utl::Base64Decoder::decodeUrlSafe ( const std::string & base64EncodedString) const
pure virtual

Decodes given URL-safe Base64-encoded string to BinaryData.

Parameters
base64EncodedString-
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeUrlSafeString() [1/2]

virtual std::string tenduke::utl::Base64Decoder::decodeUrlSafeString ( const char * base64EncodedString,
std::size_t numBytes ) const
pure virtual

Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).

Parameters
base64EncodedString-
numByteslength of the data pointer to by parameter base64EncodedString
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.

◆ decodeUrlSafeString() [2/2]

virtual std::string tenduke::utl::Base64Decoder::decodeUrlSafeString ( const std::string & base64EncodedString) const
pure virtual

Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).

Parameters
base64EncodedString-
Returns
-

Implemented in tenduke::utl::DefaultBase64Decoder.


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