Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

swdisp.cpp

00001 /******************************************************************************
00002  *  swdisp.cpp  - code for base class 'swdisp'.  swdisp is the basis for all
00003  *                types of displays (e.g. raw textout, curses, xwindow, etc.)
00004  */
00005 
00006 #include <iostream.h>
00007 #include <swmodule.h>
00008 #include <swdisp.h>
00009 
00010 static const char *classes[] = {"SWDisplay", "SWObject", 0};
00011 SWClass SWDisplay::classdef(classes);
00012 
00013 /******************************************************************************
00014  * SWDisplay::Display - casts a module to a character pointer and displays it to
00015  *                      raw output (overriden for different display types and
00016  *                      module types if necessary)
00017  *
00018  * ENT: imodule - module to display
00019  *
00020  * RET: error status
00021  */
00022 
00023 char SWDisplay::Display(SWModule &imodule)
00024 {
00025         cout << (const char *)imodule;
00026         return 0;
00027 }

Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by doxygen1.2.15