The SWORD Project  1.9.0.svnversion
 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 
28 
29 EchoMod::EchoMod() : SWText("echomod", "Echos back key")
30 {
31 }
32 
33 
35 }
36 
37 
39 {
40  static SWBuf retVal;
41  retVal = *key;
42  return retVal;
43 }
44 
#define SWORD_NAMESPACE_START
Definition: defs.h:39
Definition: swbuf.h:47
Definition: swtext.h:36
EchoMod()
Definition: echomod.cpp:29
virtual SWBuf & getRawEntryBuf() const
Definition: echomod.cpp:38
virtual ~EchoMod()
Definition: echomod.cpp:34
SWKey * key
Definition: swmodule.h:124
#define SWORD_NAMESPACE_END
Definition: defs.h:40