>xabsl |
The Extensible Agent Behavior Specification Language |
XabslEngine Class Library Reference |
  |
xabsl::EnumeratedExpression Class Reference#include <XabslEnumeratedExpression.h>
Inheritance diagram for xabsl::EnumeratedExpression:
[legend]Collaboration diagram for xabsl::EnumeratedExpression:
[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 |
EnumeratedExpression * | create (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 Enumeration * | enumeration |
Constructor & Destructor Documentation
Member Function Documentation
virtual int xabsl::EnumeratedExpression::getValue |
( |
|
) |
const [pure virtual] |
|
|
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:
|
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
The documentation for this class was generated from the following files:
Up | Main Page | Generated at Wed Aug 19 17:32:31 2009.
|
|
|