aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-documentation/html/swdisp_8cpp-source.html
blob: 274ebd98630150817ca01496dd10620af794e11a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>swdisp.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>swdisp.cpp</h1><div class="fragment"><pre>00001 <font class="comment">/******************************************************************************</font>
00002 <font class="comment"> *  swdisp.cpp  - code for base class 'swdisp'.  swdisp is the basis for all</font>
00003 <font class="comment"> *                types of displays (e.g. raw textout, curses, xwindow, etc.)</font>
00004 <font class="comment"> */</font>
00005 
00006 <font class="preprocessor">#include &lt;iostream.h&gt;</font>
00007 <font class="preprocessor">#include &lt;swmodule.h&gt;</font>
00008 <font class="preprocessor">#include &lt;swdisp.h&gt;</font>
00009 
00010 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *classes[] = {<font class="stringliteral">"SWDisplay"</font>, <font class="stringliteral">"SWObject"</font>, 0};
00011 <a class="code" href="class_s_w_class.html">SWClass</a> SWDisplay::classdef(classes);
00012 
00013 <font class="comment">/******************************************************************************</font>
00014 <font class="comment"> * SWDisplay::Display - casts a module to a character pointer and displays it to</font>
00015 <font class="comment"> *                      raw output (overriden for different display types and</font>
00016 <font class="comment"> *                      module types if necessary)</font>
00017 <font class="comment"> *</font>
00018 <font class="comment"> * ENT: imodule - module to display</font>
00019 <font class="comment"> *</font>
00020 <font class="comment"> * RET: error status</font>
00021 <font class="comment"> */</font>
00022 
<a name="l00023"></a><a class="code" href="class_s_w_display.html#a1">00023</a> <font class="keywordtype">char</font> <a class="code" href="class_s_w_display.html#a1">SWDisplay::Display</a>(<a class="code" href="class_s_w_module.html">SWModule</a> &amp;imodule)
00024 {
00025         cout &lt;&lt; (<font class="keyword">const</font> <font class="keywordtype">char</font> *)imodule;
00026         <font class="keywordflow">return</font> 0;
00027 }
</pre></div><hr><address align="right"><small>Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>