The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swdisp.cpp
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * swdisp.cpp - code for base class 'SWDisplay'. SWDisplay is the
4  * basis for all types of displays (e.g. raw textout,
5  * curses, xwindow, etc.)
6  *
7  * $Id: swdisp.cpp 3808 2020-10-02 13:23:34Z scribe $
8  *
9  * Copyright 1996-2013 CrossWire Bible Society (http://www.crosswire.org)
10  * CrossWire Bible Society
11  * P. O. Box 2528
12  * Tempe, AZ 85280-2528
13  *
14  * This program is free software; you can redistribute it and/or modify it
15  * under the terms of the GNU General Public License as published by the
16  * Free Software Foundation version 2.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * General Public License for more details.
22  *
23  */
24 
25 
26 #include <swmodule.h>
27 #include <swdisp.h>
28 
30 
31 static const char *classes[] = {"SWDisplay", "SWObject", 0};
32 static const SWClass classdef(classes);
33 
35 
36 /******************************************************************************
37  * SWDisplay::Display - casts a module to a character pointer and displays it to
38  * raw output (overriden for different display types and
39  * module types if necessary)
40  *
41  * ENT: imodule - module to display
42  *
43  * RET: error status
44  */
45 
46 
#define SWORD_NAMESPACE_START
Definition: defs.h:39
static SWORD_NAMESPACE_START const char * classes[]
Definition: swdisp.cpp:31
static const SWClass classdef(classes)
#define SWORD_NAMESPACE_END
Definition: defs.h:40
SWDisplay()
Definition: swdisp.cpp:34