~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to src/frontend/swdisp.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 *  swdisp.cpp  - code for base class 'swdisp'.  swdisp is the basis for all
 
3
 *                types of displays (e.g. raw textout, curses, xwindow, etc.)
 
4
 */
 
5
 
 
6
#include <iostream>
 
7
#include <swmodule.h>
 
8
#include <swdisp.h>
 
9
 
 
10
SWORD_NAMESPACE_START
 
11
 
 
12
static const char *classes[] = {"SWDisplay", "SWObject", 0};
 
13
SWClass SWDisplay::classdef(classes);
 
14
 
 
15
/******************************************************************************
 
16
 * SWDisplay::Display - casts a module to a character pointer and displays it to
 
17
 *                      raw output (overriden for different display types and
 
18
 *                      module types if necessary)
 
19
 *
 
20
 * ENT: imodule - module to display
 
21
 *
 
22
 * RET: error status
 
23
 */
 
24
 
 
25
char SWDisplay::Display(SWModule &imodule)
 
26
{
 
27
        std::cout << (const char *)imodule;
 
28
        return 0;
 
29
}
 
30
 
 
31
SWORD_NAMESPACE_END