Base64 Class Reference

use this class to read and write data in base64. More...

#include <OSBase64.h>

List of all members.

Public Member Functions

 Base64 ()
 Base64 class constructor.
 ~Base64 ()
 Base64 class destructor.

Static Public Member Functions

static std::string encodeb64 (char *bytes, int size)
 encode the data in base 64
static std::string decodeb64 (char *b64bytes)
 decode the data in base 64


Detailed Description

use this class to read and write data in base64.

Author:
Robert Fourer, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
it is possible to save space by eliminating the need for all the <el> tabs by writing a long string of numbers in b64 format

Definition at line 33 of file OSBase64.h.


Constructor & Destructor Documentation

Base64::Base64 (  ) 

Base64 class constructor.

Base64::~Base64 (  ) 

Base64 class destructor.


Member Function Documentation

std::string Base64::encodeb64 ( char *  bytes,
int  size 
) [static]

encode the data in base 64

Parameters:
bytes is the input to be encoded.
size is the size of the pointer in bytes
Returns:
a string in base 64 format.

Definition at line 33 of file OSBase64.cpp.

References base64_char_cstr.

Referenced by writeDblVectorData(), and writeIntVectorData().

std::string Base64::decodeb64 ( char *  b64bytes  )  [static]

decode the data in base 64

Parameters:
b64bytes is the input to be decoded
Returns:
a string that is decoded.

Definition at line 87 of file OSBase64.cpp.

References base64_char_cstr.


The documentation for this class was generated from the following files:
Generated on Thu Sep 22 03:12:26 2011 by  doxygen 1.4.7