The SWORD Project  1.9.0.svnversion
 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 
31 
32 class SWCipher;
33 
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 
44 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
Definition: swbuf.h:47
SWCipher * cipher
Definition: cipherfil.h:35
#define SWDLLEXPORT
Definition: defs.h:171
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
#define SWORD_NAMESPACE_END
Definition: defs.h:40
Definition: swkey.h:77