Scroll to navigation

FBB::IBase64Stream(3bobcat) Base64 encoding/decoding std::istream FBB::IBase64Stream(3bobcat)

NAME

FBB::IBase64Stream - Std::istream performing base64 encoding and decoding

SYNOPSIS

#include <bobcat/ibase64stream>
 
Linking option: -lbobcat

DESCRIPTION

FBB::IBase64Stream objects may be used to base64 encode or decrypt information that is available on a separate std::istream.
The class IBase64Stream is a class template, using a FBB::CryptType template non-type parameter. Objects of the class FBB::IBase64Stream<FBB::ENCODE> base64 encode the information they receive, objects of the class FBB::IBase64Stream<FBB::DECRYPT> base64 decode the information they receive.

NAMESPACE

FBB
 
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

FBB::IBase64Streambuf (private),
 
std::istream

CONSTRUCTORS

o
IBase64Stream<CryptType>(std::istream &in, size_t bufSize = 100):
 
This constructor initializes a std::istream providing it with an FBB::IBase64Streambuf stream buffer. The IBase64Streambuf’s constructor receives all arguments that are passed to this constructor.
- IBase64Stream<ENCRYPT> objects perform base64 encoding;
 
- IBase64Stream<DECRYPT> objects perform base64 decoding;
 
- IBase64Stream<CryptType> objects obtain the bytes to encode or decode from std::istream &in;
 
- The internally used IFilterStreambuf is initialized with a buffer of size bufSize, using a lower bound of 100.

INHERITED MEMBERS

Since the class uses public derivation from std::istream, all members of this class can be used.

EXAMPLE

#include "../ibase64stream"
#include <iostream>
using namespace std; using namespace FBB;
int main() { IBase64Stream<ENCRYPT> in(cin); }

FILES

bobcat/ibase64stream - defines the class interface

SEE ALSO

bobcat(7), ibase64streambuf(3bobcat)

BUGS

None Reported.

DISTRIBUTION FILES

o
bobcat_3.23.01-x.dsc: detached signature;
o
bobcat_3.23.01-x.tar.gz: source archive;
o
bobcat_3.23.01-x_i386.changes: change log;
o
libbobcat1_3.23.01-x_*.deb: debian package holding the libraries;
o
libbobcat1-dev_3.23.01-x_*.deb: debian package holding the libraries, headers and manual pages;
o
http://sourceforge.net/projects/bobcat: public archive location;

BOBCAT

Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken ( f.b.brokken@rug.nl).
2005-2014 libbobcat-dev_3.23.01-x.tar.gz