1
/******************************************************************************
5
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
6
* CrossWire Bible Society
10
* This program is free software; you can redistribute it and/or modify it
11
* under the terms of the GNU General Public License as published by the
12
* Free Software Foundation version 2.
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
24
#include <swbasicfilter.h>
29
/** this filter converts TEI text to plain text
31
class SWDLLEXPORT TEIPlain : public SWBasicFilter {
34
class MyUserData : public BasicFilterUserData {
38
MyUserData(const SWModule *module, const SWKey *key) : BasicFilterUserData(module, key) {}
40
virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) {
41
return new MyUserData(module, key);
43
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData);