#include <cxxtools/base64codec.h>

Inheritance diagram for cxxtools::Base64Codec:
cxxtools::TextCodec< char, char > std::codecvt< char, char, cxxtools::MBState > std::codecvt_base

Public Member Functions

 Base64Codec (size_t ref=0)
virtual ~Base64Codec ()
- Public Member Functions inherited from cxxtools::TextCodec< char, char >
 TextCodec (size_t ref=0)
 Constructs a new TextCodec object.
virtual ~TextCodec ()
 Empty desctructor.
size_t refs () const
- Public Member Functions inherited from std::codecvt< char, char, cxxtools::MBState >
 codecvt (size_t ref=0)
virtual ~codecvt ()
codecvt_base::result out (StateT &state, const InternT *from, const InternT *from_end, const InternT *&from_next, ExternT *to, ExternT *to_end, ExternT *&to_next) const
codecvt_base::result unshift (StateT &state, ExternT *to, ExternT *to_end, ExternT *&to_next) const
codecvt_base::result in (StateT &state, const ExternT *from, const ExternT *from_end, const ExternT *&from_next, InternT *to, InternT *to_end, InternT *&to_next) const
int encoding () const
bool always_noconv () const
int length (StateT &state, const ExternT *from, const ExternT *end, size_t max) const
int max_length () const
- Public Member Functions inherited from std::codecvt_base
virtual ~codecvt_base ()

Static Public Member Functions

static std::string decode (const char *data, unsigned size)
 shortcut for converting base64 encoded data to std::string
static std::string decode (const std::string &data)
 shortcut for converting base64 encoded std::string to std::string
static std::string encode (const char *data, unsigned size)
 shortcut for converting data to base64 encoded std::string
static std::string encode (const std::string &data)
 shortcut for converting std::string to base64 encoded std::string

Protected Member Functions

result do_in (MBState &s, const char *fromBegin, const char *fromEnd, const char *&fromNext, char *toBegin, char *toEnd, char *&toNext) const
result do_out (MBState &s, const char *fromBegin, const char *fromEnd, const char *&fromNext, char *toBegin, char *toEnd, char *&toNext) const
result do_unshift (MBState &state, char *toBegin, char *toEnd, char *&toNext) const
bool do_always_noconv () const throw ()
int do_length (MBState &s, const char *fromBegin, const char *fromEnd, size_t max) const
int do_encoding () const throw ()
int do_max_length () const throw ()

Additional Inherited Members

- Public Types inherited from cxxtools::TextCodec< char, char >
typedef char InternT
typedef char ExternT

Constructor & Destructor Documentation

cxxtools::Base64Codec::Base64Codec ( size_t  ref = 0)
inlineexplicit
virtual cxxtools::Base64Codec::~Base64Codec ( )
inlinevirtual

Member Function Documentation

static std::string cxxtools::Base64Codec::decode ( const char *  data,
unsigned  size 
)
inlinestatic

shortcut for converting base64 encoded data to std::string

Example:

std::string data = cxxtools::Base64Codec::decode(base64dataptr, base64datasize);
static std::string cxxtools::Base64Codec::decode ( const std::string &  data)
inlinestatic

shortcut for converting base64 encoded std::string to std::string

bool cxxtools::Base64Codec::do_always_noconv ( ) const throw ()
inlineprotectedvirtual
int cxxtools::Base64Codec::do_encoding ( ) const throw ()
inlineprotectedvirtual
result cxxtools::Base64Codec::do_in ( MBState s,
const char *  fromBegin,
const char *  fromEnd,
const char *&  fromNext,
char *  toBegin,
char *  toEnd,
char *&  toNext 
) const
protectedvirtual
int cxxtools::Base64Codec::do_length ( MBState s,
const char *  fromBegin,
const char *  fromEnd,
size_t  max 
) const
inlineprotectedvirtual
int cxxtools::Base64Codec::do_max_length ( ) const throw ()
inlineprotectedvirtual
result cxxtools::Base64Codec::do_out ( MBState s,
const char *  fromBegin,
const char *  fromEnd,
const char *&  fromNext,
char *  toBegin,
char *  toEnd,
char *&  toNext 
) const
protectedvirtual
result cxxtools::Base64Codec::do_unshift ( MBState state,
char *  toBegin,
char *  toEnd,
char *&  toNext 
) const
protectedvirtual
static std::string cxxtools::Base64Codec::encode ( const char *  data,
unsigned  size 
)
inlinestatic

shortcut for converting data to base64 encoded std::string

static std::string cxxtools::Base64Codec::encode ( const std::string &  data)
inlinestatic

shortcut for converting std::string to base64 encoded std::string


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