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

ExaltOptions Class Reference

#include <options.h>

List of all members.

Public Types

typedef int OptionValue
 A type for handling the values of the options.

enum  OptionName {
  Verbose, Model, Encoding, PrintGrammar,
  PrintModels, LastOption
}
 An enum of possible option names. More...

enum  {
  None = -1, No, Yes, SimpleModel,
  AdaptiveModel
}
 Some predefined values of the options. More...


Static Public Methods

void setOption (OptionName name, OptionValue value)
 Set the value of the option. More...

OptionValue getOption (OptionName name)
 Get the value of the option. More...

void resetOptions (void)
 Reset all options. More...


Detailed Description

A static class for storing the options.

Definition at line 37 of file options.h.


Member Enumeration Documentation

anonymous enum
 

Some predefined values of the options.

Enumeration values:
None  No value.
No  The value "No".
Yes  The value "TYes".
SimpleModel  Use the simple model.
AdaptiveModel  Use the adaptive model.

Definition at line 66 of file options.h.

enum ExaltOptions::OptionName
 

An enum of possible option names.

Enumeration values:
Verbose  The "verbose" option.
Model  The "model" option.
Encoding  The "encoding" option.
PrintGrammar  The "print grammar" option.
PrintModels  The "print models" option.
LastOption  Dummy option, has to be the last one!

Definition at line 41 of file options.h.

Referenced by getOption, and setOption.


Member Function Documentation

OptionValue ExaltOptions::getOption OptionName    name [inline, static]
 

Get the value of the option.

Parameters:
name  The name of the option.
Returns:
The value of the option.

Definition at line 99 of file options.h.

References OptionName, and OptionValue.

Referenced by XmlCodec::decode, ExaltCodec::decode, XmlCodec::encode, ExaltCodec::encode, XmlCodec::encodePush, XmlCodec::initializePushCoder, KYGrammar::~KYGrammar, XmlAdaptiveModel::~XmlAdaptiveModel, XmlParser::~XmlParser, and XmlSimpleModel::~XmlSimpleModel.

void ExaltOptions::resetOptions void    [inline, static]
 

Reset all options.

The values of the options are all set to None.

Definition at line 106 of file options.h.

References LastOption, and None.

Referenced by main.

void ExaltOptions::setOption OptionName    name,
OptionValue    value
[inline, static]
 

Set the value of the option.

Parameters:
name  The name of the option.
value  the value of the option.

Definition at line 90 of file options.h.

References OptionName, and OptionValue.

Referenced by main.


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 10:43:05 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002