sword::SWOptionFilter Class Reference

Base class for all option filters. More...

#include <swoptfilter.h>

Inheritance diagram for sword::SWOptionFilter:

Inheritance graph
[legend]
Collaboration diagram for sword::SWOptionFilter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SWOptionFilter (const char *oName, const char *oTip, const StringList *oValues)
virtual const char * getOptionName ()
 gets the name of the option of this filter
virtual const char * getOptionTip ()
 gets a short explanation of the option of this filter; it could be presented to the user in frontend programs
virtual StringList getOptionValues ()
 returns a list of the possible option values
virtual const char * getOptionValue ()
 
Returns:
The value of the current option.

virtual void setOptionValue (const char *ival)
 sets the value of the option of this filter, e.g maybe a strong's filter mioght be set to "on" / "off" - that would mean to show or not to show the strongs in the text, see also getOptionValues()

Protected Attributes

SWBuf optionValue
const char * optName
const char * optTip
const StringListoptValues
bool option

Detailed Description

Base class for all option filters.

Definition at line 38 of file swoptfilter.h.


Member Function Documentation

virtual const char* sword::SWOptionFilter::getOptionName (  )  [inline, virtual]

gets the name of the option of this filter

Returns:
option name

Reimplemented in sword::OSISVariants, sword::ThMLVariants, and sword::UTF8Transliterator.

Definition at line 55 of file swoptfilter.h.

virtual const char* sword::SWOptionFilter::getOptionTip (  )  [inline, virtual]

gets a short explanation of the option of this filter; it could be presented to the user in frontend programs

Returns:
option tip/explanation

Reimplemented in sword::OSISVariants, sword::ThMLVariants, and sword::UTF8Transliterator.

Definition at line 61 of file swoptfilter.h.

virtual StringList sword::SWOptionFilter::getOptionValues (  )  [inline, virtual]

returns a list of the possible option values

Returns:
list of option values

Reimplemented in sword::OSISVariants, sword::ThMLVariants, and sword::UTF8Transliterator.

Definition at line 67 of file swoptfilter.h.

virtual void sword::SWOptionFilter::setOptionValue ( const char *  ival  )  [virtual]

sets the value of the option of this filter, e.g maybe a strong's filter mioght be set to "on" / "off" - that would mean to show or not to show the strongs in the text, see also getOptionValues()

Parameters:
ival the new option value

Reimplemented in sword::OSISVariants, sword::ThMLVariants, and sword::UTF8Transliterator.


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