File: ibase64stream.yo

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (72 lines) | stat: -rw-r--r-- 2,545 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
includefile(include/header)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::IBase64Stream)(3bobcat)(_CurYrs_)
(libbobcat-dev__CurVers_)
                    (Base64 encoding/decoding std::istream)

manpagename(FBB::IBase64Stream)
                    (Std::istream performing base64 encoding and decoding)

manpagesynopsis()
    bf(#include <bobcat/ibase64stream>)nl()
    Linking option: tt(-lbobcat)

manpagedescription()
    bf(FBB::IBase64Stream) objects may be used to base64 encode or decrypt
information that is available on a separate tt(std::istream).

     The tt(class IBase64Stream) is a class template, using a
tt(FBB::CryptType) template non-type parameter. Objects of the class
tt(FBB::IBase64Stream<FBB::ENCRYPT>) base64 encode the information they
receive, objects of the class tt(FBB::IBase64Stream<FBB::DECRYPT>) base64
decode the information they receive.


includefile(include/namespace)

manpagesection(INHERITS FROM)
    bf(FBB::IBase64Buf) (private), nl()
    bf(std::istream)

manpagesection(CONSTRUCTORS)
    itemization(
    itb(IBase64Stream<CryptType>(std::istream &in, size_t bufSize = 1000))
        This constructor initializes a tt(std::istream) providing it with an
tt(FBB::IBase64Buf) stream buffer. The tt(IBase64Buf)'s
constructor receives all arguments that are passed to this constructor.

    - tt(IBase64Stream<ENCRYPT>) objects perform base64 encoding;nl()
    - tt(IBase64Stream<DECRYPT>) objects perform base64 decoding;nl()
    - tt(IBase64Stream<CryptType>) objects obtain the bytes to encode or
decode from tt(std::istream &in);nl()
    - The internally used tt(IFilterBuf) is initialized with a buffer of
size tt(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 base64 encoded
data are unavailable after completing the base64 decrypting. If information
beyond the base64 input block should remain available, then specify a buffer
size of 1.
    )

    Copy and move constructors (and assignment operators) are not available.

manpagesection(INHERITED MEMBERS)

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

manpagesection(EXAMPLE)
    verbinclude(../../ibase64stream/driver/driver.cc)

manpagefiles()
    em(bobcat/ibase64stream) - defines the class interface

manpageseealso()
    bf(bobcat)(7), bf(ibase64buf)(3bobcat)

manpagebugs()
    None Reported.

includefile(include/trailer)