>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::BooleanOptionParameterRef Class Reference

#include <XabslBooleanExpression.h>

Inheritance diagram for xabsl::BooleanOptionParameterRef:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a reference to a decimal option parameter.

Author:
Max Risler

Definition at line 111 of file XabslBooleanExpression.h.


Public Member Functions

 BooleanOptionParameterRef (InputSource &input, ErrorHandler &errorHandler, Option &option)
 Constructor.

virtual bool getValue () const
 Calculates the value of the boolean expression.


Private Attributes

bool * parameter
 A pointer to the parameter.


Constructor & Destructor Documentation

xabsl::BooleanOptionParameterRef::BooleanOptionParameterRef InputSource input,
ErrorHandler errorHandler,
Option option
 

Constructor.

Creates the reference

Parameters:
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 216 of file XabslBooleanExpression.cpp.

References xabsl::Parameters::boolean, xabsl::NamedArrayElement< bool * >::e, xabsl::ErrorHandler::error(), xabsl::NamedArray< bool * >::exists(), xabsl::NamedArray< bool * >::getPElement(), xabsl::ErrorHandler::message(), parameter, xabsl::Behavior::parameters, xabsl::InputSource::readString(), and XABSL_DEBUG_INIT.

Here is the call graph for this function:


Member Function Documentation

bool xabsl::BooleanOptionParameterRef::getValue  )  const [virtual]
 

Calculates the value of the boolean expression.

Implements xabsl::BooleanExpression.

Definition at line 234 of file XabslBooleanExpression.cpp.

References parameter.


Member Data Documentation

bool* xabsl::BooleanOptionParameterRef::parameter [private]
 

A pointer to the parameter.

Definition at line 130 of file XabslBooleanExpression.h.

Referenced by BooleanOptionParameterRef(), and getValue().


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

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