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
swinputmeth.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* swinputmeth.h - class SWInputMethod: the base for all InputMethods in
4
* SWORD
5
*
6
* $Id: swinputmeth.h 3786 2020-08-30 11:35:14Z scribe $
7
*
8
* Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
9
* CrossWire Bible Society
10
* P. O. Box 2528
11
* Tempe, AZ 85280-2528
12
*
13
* This program is free software; you can redistribute it and/or modify it
14
* under the terms of the GNU General Public License as published by the
15
* Free Software Foundation version 2.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
21
*
22
*/
23
24
#ifndef SWINPUTMETHOD_H
25
#define SWINPUTMETHOD_H
26
27
#include <
defs.h
>
28
SWORD_NAMESPACE_START
29
30
class
SWDLLEXPORT
SWInputMethod
{
31
32
private
:
33
int
state
;
34
35
protected
:
36
virtual
void
setState(
int
state);
37
38
public
:
39
SWInputMethod
();
40
virtual
~SWInputMethod
() {}
41
42
virtual
int
*
translate
(
char
in) = 0;
43
virtual
int
getState();
44
virtual
void
clearState();
45
};
46
47
SWORD_NAMESPACE_END
48
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
SWInputMethod::~SWInputMethod
virtual ~SWInputMethod()
Definition:
swinputmeth.h:40
defs.h
translate
else preg translate
Definition:
regex.c:8111
SWInputMethod::state
int state
Definition:
swinputmeth.h:33
SWInputMethod
Definition:
swinputmeth.h:30
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
include
swinputmeth.h
Generated by
1.8.5