>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::BooleanValue Class Reference

#include <XabslBooleanExpression.h>

Inheritance diagram for xabsl::BooleanValue:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a boolean value.

Author:
Max Risler

Definition at line 78 of file XabslBooleanExpression.h.


Public Member Functions

 BooleanValue (InputSource &input, ErrorHandler &errorHandler)
 Constructor.

 BooleanValue (bool value)
 Constructor.

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


Private Attributes

bool value
 The value.


Constructor & Destructor Documentation

xabsl::BooleanValue::BooleanValue InputSource input,
ErrorHandler errorHandler
 

Constructor.

Creates the value

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

References xabsl::ErrorHandler::message(), xabsl::InputSource::readString(), value, and XABSL_DEBUG_INIT.

Here is the call graph for this function:

xabsl::BooleanValue::BooleanValue bool  value  )  [inline]
 

Constructor.

Creates an expression for a fixed boolean value

Parameters:
value The boolean value

Definition at line 94 of file XabslBooleanExpression.h.


Member Function Documentation

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

Calculates the value of the decimal expression.

Implements xabsl::BooleanExpression.

Definition at line 211 of file XabslBooleanExpression.cpp.

References value.


Member Data Documentation

bool xabsl::BooleanValue::value [private]
 

The value.

Definition at line 101 of file XabslBooleanExpression.h.

Referenced by BooleanValue(), 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.