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

SWLD Class Reference

the basis for all types of Lexicon and Dictionary modules (hence the 'LD'). More...

#include <swld.h>

Inheritance diagram for SWLD::

SWModule List of all members.

Public Methods

 SWLD (const char *imodname=0, const char *imoddesc=0, SWDisplay *idisp=0, SWTextEncoding encoding=ENC_UNKNOWN, SWTextDirection dir=DIRECTION_LTR, SWTextMarkup markup=FMT_UNKNOWN, const char *ilang=0)
 Initializes data for instance of SWLD. More...

virtual ~SWLD ()
virtual SWKeyCreateKey ()
 Allocates a key of specific type for module The different reimplementatiosn of SWModule (e.g. More...

virtual const char * KeyText (const char *ikeytext)
 Sets/gets module KeyText, getting from saved text if key is persistent. More...


Protected Attributes

char * entkeytxt

Detailed Description

the basis for all types of Lexicon and Dictionary modules (hence the 'LD').

Definition at line 34 of file swld.h.


Constructor & Destructor Documentation

SWLD::SWLD const char * imodname = 0,
const char * imoddesc = 0,
SWDisplay * idisp = 0,
SWTextEncoding encoding = ENC_UNKNOWN,
SWTextDirection dir = DIRECTION_LTR,
SWTextMarkup markup = FMT_UNKNOWN,
const char * ilang = 0
 

Initializes data for instance of SWLD.

Parameters:
imodname   Internal name for module
imoddesc   Name to display to user for module
idisp   Display object to use for displaying


Member Function Documentation

virtual SWKey* SWLD::CreateKey [inline, virtual]
 

Allocates a key of specific type for module The different reimplementatiosn of SWModule (e.g.

SWText) support SWKey implementations, which support special. This functions returns a SWKey object which works with the current implementation of SWModule. For example for the SWText class it returns a VerseKey object.

See also:
VerseKey, ListKey, SWText, SWLD, SWCom
Returns:
pointer to allocated key

Reimplemented from SWModule.

Definition at line 47 of file swld.h.

virtual const char* SWLD::KeyText const char * ikeytext [virtual]
 

Sets/gets module KeyText, getting from saved text if key is persistent.

Parameters:
ikeytext   value which to set keytext; [0] - only get
Returns:
pointer to keytext

Reimplemented from SWModule.


The documentation for this class was generated from the following file:
Generated at Tue Jan 22 14:52:49 2002 for The Sword Project by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001