>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::EnumeratedExpression Class Reference

#include <XabslEnumeratedExpression.h>

Inheritance diagram for xabsl::EnumeratedExpression:

Inheritance graph
[legend]
Collaboration diagram for xabsl::EnumeratedExpression:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for all enumerated expressions inside an option graph.

Author:
Max Risler

Definition at line 25 of file XabslEnumeratedExpression.h.


Public Member Functions

virtual int getValue () const=0
 Evaluates the enumerated expression.

virtual ~EnumeratedExpression ()=0
 Destructor.


Static Public Member Functions

EnumeratedExpressioncreate (const Enumeration *enumeration, InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Creates an enumerated expression depending on the input.

bool createOperand (const EnumeratedExpression *&operand, const Enumeration *enumeration, InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Creates an enumerated expression depending on the input.


Public Attributes

const Enumerationenumeration

Constructor & Destructor Documentation

xabsl::EnumeratedExpression::~EnumeratedExpression  )  [pure virtual]
 

Destructor.

Definition at line 15 of file XabslEnumeratedExpression.cpp.


Member Function Documentation

virtual int xabsl::EnumeratedExpression::getValue  )  const [pure virtual]
 

Evaluates the enumerated expression.

Implemented in xabsl::EnumeratedValue, xabsl::EnumeratedOptionParameterRef, xabsl::EnumeratedInputSymbolRef, xabsl::EnumeratedOutputSymbolRef, and xabsl::ConditionalEnumeratedExpression.

Referenced by xabsl::ActionEnumeratedOutputSymbol::execute(), xabsl::ConditionalEnumeratedExpression::getValue(), and xabsl::EnumeratedInputSymbolComparison::getValue().

EnumeratedExpression * xabsl::EnumeratedExpression::create const Enumeration enumeration,
InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
[static]
 

Creates an enumerated expression depending on the input.

Parameters:
enumeration A reference to the enumeration which is the domain of this expression
input An input source for the intermediate code. It must be opened and read until A position where a enumerated expression starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state

Definition at line 19 of file XabslEnumeratedExpression.cpp.

References xabsl::ErrorHandler::error(), and xabsl::InputSource::readString().

Here is the call graph for this function:

bool xabsl::EnumeratedExpression::createOperand const EnumeratedExpression *&  operand,
const Enumeration enumeration,
InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
[static]
 

Creates an enumerated expression depending on the input.

Uses the create() function to create enumerated operands.

Parameters:
operand The expression to be created
enumeration A reference to the enumeration which is the domain of this expression
input An input source for the intermediate code. It must be opened and read until A position where a decimal operand starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state
Returns:
If the creation was successful

Definition at line 47 of file XabslEnumeratedExpression.cpp.

References xabsl::ErrorHandler::error(), and xabsl::ErrorHandler::errorsOccurred.

Here is the call graph for this function:


Member Data Documentation

const Enumeration* xabsl::EnumeratedExpression::enumeration
 

Definition at line 73 of file XabslEnumeratedExpression.h.

Referenced by xabsl::EnumeratedInputSymbolComparison::EnumeratedInputSymbolComparison(), and xabsl::ParameterAssignment::setEnumeratedParameter().


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

Up | Main Page | Generated at Wed Aug 19 17:32:31 2009.