<!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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </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 <iostream.h></font> 00007 <font class="preprocessor">#include <swmodule.h></font> 00008 <font class="preprocessor">#include <swdisp.h></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> &imodule) 00024 { 00025 cout << (<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>