>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::EnumeratedValue Class Reference

#include <XabslEnumeratedExpression.h>

Inheritance diagram for xabsl::EnumeratedValue:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a enumerated value.

Author:
Max Risler

Definition at line 83 of file XabslEnumeratedExpression.h.


Public Member Functions

 EnumeratedValue (const Enumeration *enumeration, InputSource &input, ErrorHandler &errorHandler)
 Constructor.

 EnumeratedValue (const Enumeration *enumeration, int value)
 Constructor.

virtual int getValue () const
 Calculates the value of the decimal expression.


Private Attributes

int value
 The value.


Constructor & Destructor Documentation

xabsl::EnumeratedValue::EnumeratedValue const Enumeration enumeration,
InputSource input,
ErrorHandler errorHandler
 

Constructor.

Creates the value

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 value starts.
errorHandler A reference to a ErrorHandler instance

Definition at line 73 of file XabslEnumeratedExpression.cpp.

References xabsl::Enumeration::enumElements, xabsl::ErrorHandler::error(), xabsl::NamedArray< EnumElement * >::exists(), xabsl::NamedItem::n, and xabsl::InputSource::readString().

Here is the call graph for this function:

xabsl::EnumeratedValue::EnumeratedValue const Enumeration enumeration,
int  value
[inline]
 

Constructor.

Creates an expression for a fixed enumerated value

Parameters:
value The enumerated value

Definition at line 101 of file XabslEnumeratedExpression.h.


Member Function Documentation

int xabsl::EnumeratedValue::getValue  )  const [virtual]
 

Calculates the value of the decimal expression.

Implements xabsl::EnumeratedExpression.

Definition at line 96 of file XabslEnumeratedExpression.cpp.


Member Data Documentation

int xabsl::EnumeratedValue::value [private]
 

The value.

Definition at line 112 of file XabslEnumeratedExpression.h.


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

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