- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# 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 constructior.
| ~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)
| dencode 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 possible to save memory by eliminating the need for all the <el> tabs by writing a long string of numbers in b64 format

Definition at line 35 of file OSBase64.h.

## Constructor & Destructor Documentation

Base64::Base64 | ( |  | ) |

Base64 class constructior.

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 34 of file OSBase64.cpp.

References base64_char_cstr.

Referenced by writeDblVectorData(), and writeIntVectorData().

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

dencode the data in base 64

Parameters:

  | b64bytes | is the input to be decoded

Returns:
  a string that is decoded.

Definition at line 83 of file OSBase64.cpp.

References base64_char_cstr.

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

- /home/coin/SVN-release/OS-2.3.5/OS/src/OSUtils/OSBase64.h
- /home/coin/SVN-release/OS-2.3.5/OS/src/OSUtils/OSBase64.cpp