Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

Base64 Class Reference

#include <OpenMS/FORMAT/Base64.h>

List of all members.


Detailed Description

Class to encode and decode Base64.

Base64 supports two precisions: 32 Bit (float) and 64 Bit (double).

Public Types

enum  ByteOrder { BYTEORDER_BIGENDIAN, BYTEORDER_LITTLEENDIAN }

Public Member Functions

 Base64 ()
 default constructor
virtual ~Base64 ()
 Destructor.
template<typename FromType>
void encode (std::vector< FromType > &in, ByteOrder to_byte_order, std::string &out)
 Encodes a vector of floating point numbers to a Base64 String.
template<typename ToType>
void decode (const std::string &in, ByteOrder from_byte_order, std::vector< ToType > &out)
 Decodes a Base64 string to a vector of floating point numbers.

Static Private Attributes

static const char encoder_ []
static const char decoder_ []


Member Enumeration Documentation

enum ByteOrder

Enumerator:
BYTEORDER_BIGENDIAN 
BYTEORDER_LITTLEENDIAN 


Constructor & Destructor Documentation

Base64 (  ) 

default constructor

virtual ~Base64 (  )  [virtual]

Destructor.


Member Function Documentation

void encode ( std::vector< FromType > &  in,
ByteOrder  to_byte_order,
std::string &  out 
) [inline]

Encodes a vector of floating point numbers to a Base64 String.

Note:
in will be emtpy after this method

void decode ( const std::string &  in,
ByteOrder  from_byte_order,
std::vector< ToType > &  out 
) [inline]

Decodes a Base64 string to a vector of floating point numbers.

Decodes a Base64 string to a float vector.

Note:
in will be emtpy after this method


Member Data Documentation

const char encoder_[] [static, private]

const char decoder_[] [static, private]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:44 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1