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
osiscgi.h
Go to the documentation of this file.
1
/***************************************************************************
2
*
3
* osiscgi.h - OSISCGI: OSIS to Diatheke/CGI format filter
4
*
5
* $Id: osiscgi.h 2833 2013-06-29 06:40:28Z chrislit $
6
*
7
* Copyright 2003-2013 CrossWire Bible Society (http://www.crosswire.org)
8
* CrossWire Bible Society
9
* P. O. Box 2528
10
* Tempe, AZ 85280-2528
11
*
12
* This program is free software; you can redistribute it and/or modify it
13
* under the terms of the GNU General Public License as published by the
14
* Free Software Foundation version 2.
15
*
16
* This program is distributed in the hope that it will be useful, but
17
* WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
20
*
21
*/
22
23
#ifndef OSISCGI_H
24
#define OSISCGI_H
25
26
#include <
swbasicfilter.h
>
27
28
#include <
defs.h
>
29
30
SWORD_NAMESPACE_START
31
34
class
OSISCGI
:
public
SWBasicFilter
{
35
private
:
36
protected
:
37
class
MyUserData
:
public
BasicFilterUserData
{
38
public
:
39
bool
osisQToTick
;
40
bool
inBold
;
41
SWBuf
w
;
42
SWBuf
fn
;
43
MyUserData
(
const
SWModule
*
module
,
const
SWKey
*
key
);
44
};
45
virtual
BasicFilterUserData
*
createUserData
(
const
SWModule
*
module
,
const
SWKey
*key) {
46
return
new
MyUserData
(module, key);
47
}
48
virtual
bool
handleToken
(
SWBuf
&buf,
const
char
*token,
BasicFilterUserData
*userData);
49
public
:
50
OSISCGI
();
51
};
52
53
SWORD_NAMESPACE_END
54
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
OSISCGI::MyUserData::w
SWBuf w
Definition:
osiscgi.h:41
OSISCGI::MyUserData::inBold
bool inBold
Definition:
osiscgi.h:40
SWBuf
Definition:
swbuf.h:47
BasicFilterUserData
Definition:
swbasicfilter.h:38
SWBasicFilter
Definition:
swbasicfilter.h:62
OSISCGI::createUserData
virtual BasicFilterUserData * createUserData(const SWModule *module, const SWKey *key)
Definition:
osiscgi.h:45
BasicFilterUserData::module
const SWModule * module
Definition:
swbasicfilter.h:42
module
SWText * module
Definition:
osis2mod.cpp:105
OSISCGI::MyUserData
Definition:
osiscgi.h:37
defs.h
OSISCGI::MyUserData::osisQToTick
bool osisQToTick
Definition:
osiscgi.h:39
SWModule
Definition:
swmodule.h:101
BasicFilterUserData::key
const SWKey * key
Definition:
swbasicfilter.h:43
OSISCGI
Definition:
osiscgi.h:34
OSISCGI::handleToken
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
Definition:
osiscgi.cpp:59
OSISCGI::MyUserData::fn
SWBuf fn
Definition:
osiscgi.h:42
OSISCGI::MyUserData::MyUserData
MyUserData(const SWModule *module, const SWKey *key)
Definition:
osiscgi.cpp:33
OSISCGI::OSISCGI
OSISCGI()
Definition:
osiscgi.cpp:38
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
SWKey
Definition:
swkey.h:77
swbasicfilter.h
utilities
diatheke
osiscgi.h
Generated by
1.8.5