A Base64 object is a reference-count pointer that wraps a Base64Impl object
![]() | Base64 (Base64Impl* impl = NULL) Constructs a Base64 given a Base64Impl object |
![]() | ~Base64 () Decerements the ref_cnt, and destroys the object when the ref_cnt is 0 |
![]() | getInstance () Returns a Base64 object that provides the implementation of the base64 encoding algorithms that is installed in the Provider |
![]() | encode (const string& data) A static method that returns a encoded value given the string to be encoded specified by data |
![]() | decode (const string& enc) A static method that returns a decoded value given the string to be decoded specified by enc |
A Base64 object is a reference-count pointer that wraps a Base64Impl object.Usage: try { string mesg = "hello there"; string enc = Base64::encode(mesg); string data = Base64::decode(enc); } catch(Exception &ex) {.....} or Another Usage: try { Base64 encoder = Base64::getInstance(); encoder->encodeInit(); encoder->encodeUpdate("hello"); encoder->encodeUpdate(" "); encoder->encodeUpdate("there"); string enc = encoder->encode(); Base64 decoder = Base64::getInstance(); decoder->decodeInit(); decoder->decodeUpdate(enc); decoder->decodeInit(); decoder->encodeUpdate(enc); string data = decoder->decode(); } catch(Exception &ex) {.....}
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de