The SWORD Project
1.9.0.svnversion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
cipherfil.h
Go to the documentation of this file.
1
/***************************************************************************
2
*
3
* cipherfil.h - class CipherFilter: an EncodingFilter which can
4
* encipher and decipher a text stream based on
5
* a CipherKey
6
*
7
* $Id: cipherfil.h 3787 2020-08-30 12:00:38Z scribe $
8
*
9
* Copyright 1999-2013 CrossWire Bible Society (http://www.crosswire.org)
10
* CrossWire Bible Society
11
* P. O. Box 2528
12
* Tempe, AZ 85280-2528
13
*
14
* This program is free software; you can redistribute it and/or modify it
15
* under the terms of the GNU General Public License as published by the
16
* Free Software Foundation version 2.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
* General Public License for more details.
22
*
23
*/
24
25
#ifndef CIPHERFIL_H
26
#define CIPHERFIL_H
27
28
#include <
swfilter.h
>
29
30
SWORD_NAMESPACE_START
31
32
class
SWCipher
;
33
34
class
SWDLLEXPORT
CipherFilter
:
public
SWFilter
{
35
SWCipher
*
cipher
;
36
public
:
37
CipherFilter
(
const
char
*key);
38
virtual
~
CipherFilter
();
39
virtual
char
processText
(
SWBuf
&text,
const
SWKey
*key = 0,
const
SWModule
* = 0);
40
virtual
SWCipher
*getCipher();
41
};
42
43
SWORD_NAMESPACE_END
44
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWBuf
Definition:
swbuf.h:47
CipherFilter::cipher
SWCipher * cipher
Definition:
cipherfil.h:35
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
CipherFilter
Definition:
cipherfil.h:34
SWCipher
Definition:
swcipher.h:33
swfilter.h
SWFilter
Definition:
swfilter.h:45
SWModule
Definition:
swmodule.h:101
SWFilter::processText
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
SWKey
Definition:
swkey.h:77
include
cipherfil.h
Generated by
1.8.5