The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SWDisplay Class Referenceabstract

#include <swdisp.h>

+ Inheritance diagram for SWDisplay:
+ Collaboration diagram for SWDisplay:

Public Member Functions

virtual char display (SWModule &imodule)=0
 
SWDEPRECATED char Display (SWModule &imodule)
 
const SWClassgetClass () const
 
 SWDisplay ()
 
virtual ~SWDisplay ()
 

Protected Attributes

const SWClassmyClass
 

Detailed Description

SWDisplay is the basis for all types of displays (e.g. raw textout, curses, xwindow, etc.)

Definition at line 37 of file swdisp.h.

Constructor & Destructor Documentation

SWDisplay::SWDisplay ( )

Definition at line 34 of file swdisp.cpp.

34 : SWObject(classdef){ };
SWObject(const SWClass &classdef)
Definition: swobject.cpp:61
static const SWClass classdef(classes)
virtual SWDisplay::~SWDisplay ( )
inlinevirtual

Definition at line 41 of file swdisp.h.

41 { };

Member Function Documentation

virtual char SWDisplay::display ( SWModule imodule)
pure virtual

casts a module to a character pointer and displays it to raw output (overriden for different display types and module types if necessary)

Parameters
imodulemodule to display
Returns
error status

Implemented in SWModule::StdOutDisplay.

SWDEPRECATED char SWDisplay::Display ( SWModule imodule)
inline
Deprecated:
Use display

Definition at line 54 of file swdisp.h.

54 { return display(imodule); }
virtual char display(SWModule &imodule)=0
const SWClass* SWObject::getClass ( ) const
inlineinherited

Use this to get the class definition and inheritance order.

Returns
The class definition of this object

Definition at line 63 of file swobject.h.

63  {
64  return myClass;
65  }
const SWClass * myClass
Definition: swobject.h:55

Member Data Documentation

const SWClass* SWObject::myClass
protectedinherited

Definition at line 55 of file swobject.h.


The documentation for this class was generated from the following files: