libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Base64 Class Reference

#include <Base64.h>

Public Member Functions

 ~Base64 ()
 

Static Public Member Functions

template<typename DataIn >
static void encode (const DataIn &in, std::string &out)
 Encodes a string to Base64. More...
 
template<typename DataIn >
static std::string encode (const DataIn &in)
 Encodes a string to Base64. More...
 
template<typename DataOut >
static void decode (const std::string &in, DataOut &out)
 Decodes a Base64 encoded string. More...
 
template<typename DataOut >
static DataOut decode (const std::string &in)
 Decodes a Base64 encoded string. More...
 

Constructor & Destructor Documentation

§ ~Base64()

BaseLib::Base64::~Base64 ( )
inline

Member Function Documentation

§ decode() [1/2]

template<typename DataOut >
void BaseLib::Base64::decode ( const std::string &  in,
DataOut &  out 
)
static

Decodes a Base64 encoded string.

Parameters
[in]inThe base64-encoded data to decode.
[out]outThe array, the result is stored in.

§ decode() [2/2]

template<typename DataOut >
DataOut BaseLib::Base64::decode ( const std::string &  in)
static

Decodes a Base64 encoded string.

Parameters
[in]inThe base64-encoded data to decode.
Returns
Returns an array containing the decoded result.

§ encode() [1/2]

template<typename DataIn >
void BaseLib::Base64::encode ( const DataIn &  in,
std::string &  out 
)
static

Encodes a string to Base64.

Parameters
[in]inThe data to encode.
[out]outThe string, the base64-encoded result is stored in.

§ encode() [2/2]

template<typename DataIn >
std::string BaseLib::Base64::encode ( const DataIn &  in)
static

Encodes a string to Base64.

Parameters
[in]inThe data to encode.
Returns
Returns the base64-encoded string.

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