Public Member Functions

xl7::utilities::Base64 Class Reference

#include <Base64.h>

Inheritance diagram for xl7::utilities::Base64:
cl7::designpatterns::Singleton< Base64 >

List of all members.

Public Member Functions

 Base64 (void)
 ~Base64 (void)
bool InsertSpaces () const
bool InsertBreaks () const
unsigned GetLineLength () const
void InsertSpaces (bool insert_spaces)
void InsertBreaks (bool insert_breaks)
void SetLineLength (unsigned line_length)
cl7::string_type Encode (const void *data, unsigned bytes) const
cl7::string_type Encode (const void *data, unsigned bytes, bool insert_spaces, bool insert_breaks, unsigned line_length=0) const
bool Decode (const cl7::string_type &base64, void *data) const
unsigned Bytes (const cl7::string_type &base64) const

Constructor & Destructor Documentation

xl7::utilities::Base64::Base64 ( void   ) 

Default constructor.

xl7::utilities::Base64::~Base64 ( void   ) 

Destructor.


Member Function Documentation

unsigned xl7::utilities::Base64::Bytes ( const cl7::string_type base64  )  const

Returns the number of bytes required to store the decoded data of the given Base64 string.

bool xl7::utilities::Base64::Decode ( const cl7::string_type base64,
void *  data 
) const

Decodes the given Base64 string and writes the data into the given buffer.

cl7::string_type xl7::utilities::Base64::Encode ( const void *  data,
unsigned  bytes,
bool  insert_spaces,
bool  insert_breaks,
unsigned  line_length = 0 
) const

Encodes the given data buffer.

cl7::string_type xl7::utilities::Base64::Encode ( const void *  data,
unsigned  bytes 
) const

Encodes the given data buffer.

unsigned xl7::utilities::Base64::GetLineLength (  )  const [inline]

Returns the default line length limit.

void xl7::utilities::Base64::InsertBreaks ( bool  insert_breaks  )  [inline]

Sets the default flag that specifies, whether line-breaks are inserted every 76 (default value) characters.

bool xl7::utilities::Base64::InsertBreaks (  )  const [inline]

Returns the default flag that specifies, whether line-breaks are inserted every 76 (default value) characters.

void xl7::utilities::Base64::InsertSpaces ( bool  insert_spaces  )  [inline]

Sets the default flag that specifies, whether spaces are inserted between the 4-character blocks.

bool xl7::utilities::Base64::InsertSpaces (  )  const [inline]

Returns the default flag that specifies, whether spaces are inserted between the 4-character blocks.

void xl7::utilities::Base64::SetLineLength ( unsigned  line_length  )  [inline]

Sets the default line length limit.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines