The class IQuotedPrintableStream is a class template, using a FBB::CodeType template non-type parameter. Objects of the class FBB::IQuotedPrintableStream<FBB::ENCODE> encode the information they receive, objects of the class FBB::IQuotedPrintableStream<FBB::DECODE> decode the information they receive.
- IQuotedPrintableStream<ENCODE> objects perform quoted printable
encodi ng;
- IQuotedPrintableStream<DECODE> objects perform quoted printable
decoding;
- IQuotedPrintableStream<CodeType> objects obtain the bytes to encode
or decode from std::istream ∈
- The internally used IFilterBuf is initialized with a buffer of
size bufSize, using a lower bound of 100.
The constructor uses a configurable buffer size for reading. Characters that were read into the buffer but are not part of the actual quoted printable encoded data are unavailable after completing the quoted printable decoding. If information beyond the quoted printable input block should remain available, then specify a buffer size of 1.
Copy and move constructors (and assignment operators) are not available.
Since the class uses public derivation from std::istream, all members of this class can be used.
#include <iostream> #include <bobcat/iquotedprintablestream> using namespace std; using namespace FBB; int main() { IQuotedPrintableStream<ENCODE> in(cin); cout << in.rdbuf(); // quoted printable encode the info on // cin. }
See also the example in the iquotedprintablebuf(3bobcat) man-page.
Debian Bobcat project files: