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
echomod.cpp
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* echomod.cpp - code for class 'EchoMod'- a dummy test text module
4
* that just echos back the key
5
*
6
* $Id: echomod.cpp 2833 2013-06-29 06:40:28Z chrislit $
7
*
8
* Copyright 1996-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
#include <
echomod.h
>
25
26
27
SWORD_NAMESPACE_START
28
29
EchoMod::EchoMod
() :
SWText
(
"echomod"
,
"Echos back key"
)
30
{
31
}
32
33
34
EchoMod::~EchoMod
() {
35
}
36
37
38
SWBuf
&
EchoMod::getRawEntryBuf
()
const
39
{
40
static
SWBuf
retVal;
41
retVal = *
key
;
42
return
retVal;
43
}
44
45
SWORD_NAMESPACE_END
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWBuf
Definition:
swbuf.h:47
SWText
Definition:
swtext.h:36
EchoMod::EchoMod
EchoMod()
Definition:
echomod.cpp:29
EchoMod::getRawEntryBuf
virtual SWBuf & getRawEntryBuf() const
Definition:
echomod.cpp:38
echomod.h
EchoMod::~EchoMod
virtual ~EchoMod()
Definition:
echomod.cpp:34
SWModule::key
SWKey * key
Definition:
swmodule.h:124
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
src
modules
tests
echomod.cpp
Generated by
1.8.5