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
swfilter.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* swfilter.h - class SWFilter: the base for all Filters in SWORD
4
* a Filter manipulates the text stream in some way,
5
* usually converting text between different markups,
6
* encoding, to show or hide text features
7
* for the user, or to strip markup for searching
8
*
9
* $Id: swfilter.h 3786 2020-08-30 11:35:14Z scribe $
10
*
11
* Copyright 1997-2013 CrossWire Bible Society (http://www.crosswire.org)
12
* CrossWire Bible Society
13
* P. O. Box 2528
14
* Tempe, AZ 85280-2528
15
*
16
* This program is free software; you can redistribute it and/or modify it
17
* under the terms of the GNU General Public License as published by the
18
* Free Software Foundation version 2.
19
*
20
* This program is distributed in the hope that it will be useful, but
21
* WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
* General Public License for more details.
24
*
25
*/
26
27
#ifndef SWFILTER_H
28
#define SWFILTER_H
29
30
#include <
defs.h
>
31
32
SWORD_NAMESPACE_START
33
34
class
SWKey
;
35
class
SWBuf
;
36
class
SWModule
;
37
38
39
class
SWModule
;
40
45
class
SWDLLEXPORT
SWFilter
{
46
public
:
47
virtual
~SWFilter
() {}
48
57
virtual
char
processText(
SWBuf
&text,
const
SWKey
*key = 0,
const
SWModule
*
module
= 0) = 0;
58
62
virtual
const
char
*
getHeader
()
const
{
return
""
; }
63
};
64
65
SWORD_NAMESPACE_END
66
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWBuf
Definition:
swbuf.h:47
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
module
SWText * module
Definition:
osis2mod.cpp:105
defs.h
SWFilter::~SWFilter
virtual ~SWFilter()
Definition:
swfilter.h:47
SWFilter
Definition:
swfilter.h:45
SWModule
Definition:
swmodule.h:101
SWFilter::getHeader
virtual const char * getHeader() const
Definition:
swfilter.h:62
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
SWKey
Definition:
swkey.h:77
include
swfilter.h
Generated by
1.8.5