>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::EnumeratedOptionParameterRef Class Reference

#include <XabslEnumeratedExpression.h>

Inheritance diagram for xabsl::EnumeratedOptionParameterRef:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a reference to a enumerated option parameter.

Author:
Max Risler

Definition at line 122 of file XabslEnumeratedExpression.h.


Public Member Functions

 EnumeratedOptionParameterRef (const Enumeration *enumeration, InputSource &input, ErrorHandler &errorHandler, Option &option)
 Constructor.

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


Private Attributes

int * parameter
 A pointer to the parameter.


Constructor & Destructor Documentation

xabsl::EnumeratedOptionParameterRef::EnumeratedOptionParameterRef const Enumeration enumeration,
InputSource input,
ErrorHandler errorHandler,
Option option
 

Constructor.

Creates the reference

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 the expression starts.
errorHandler A reference to a ErrorHandler instance
option The current option

Definition at line 101 of file XabslEnumeratedExpression.cpp.

References xabsl::NamedArrayElement< int * >::e, xabsl::Parameters::enumerated, xabsl::Parameters::enumerations, xabsl::ErrorHandler::error(), xabsl::NamedArray< int * >::exists(), xabsl::NamedArray< int * >::getPElement(), xabsl::ErrorHandler::message(), xabsl::NamedItem::n, xabsl::Behavior::parameters, xabsl::InputSource::readString(), and XABSL_DEBUG_INIT.

Here is the call graph for this function:


Member Function Documentation

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

Calculates the value of the enumerated expression.

Implements xabsl::EnumeratedExpression.

Definition at line 125 of file XabslEnumeratedExpression.cpp.


Member Data Documentation

int* xabsl::EnumeratedOptionParameterRef::parameter [private]
 

A pointer to the parameter.

Definition at line 143 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.