>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::DecimalValue Class Reference

#include <XabslDecimalExpression.h>

Inheritance diagram for xabsl::DecimalValue:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a decimal value.

Author:
Martin Loetzsch

Definition at line 85 of file XabslDecimalExpression.h.


Public Member Functions

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

 DecimalValue (double value)
 Constructor.

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


Private Attributes

double value
 The value.


Constructor & Destructor Documentation

xabsl::DecimalValue::DecimalValue 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 134 of file XabslDecimalExpression.cpp.

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

Here is the call graph for this function:

xabsl::DecimalValue::DecimalValue double  value  )  [inline]
 

Constructor.

Creates an expression for a fixed decimal value

Parameters:
value The decimal value

Definition at line 101 of file XabslDecimalExpression.h.


Member Function Documentation

double xabsl::DecimalValue::getValue  )  const [virtual]
 

Calculates the value of the decimal expression.

Implements xabsl::DecimalExpression.

Definition at line 142 of file XabslDecimalExpression.cpp.


Member Data Documentation

double xabsl::DecimalValue::value [private]
 

The value.

Definition at line 108 of file XabslDecimalExpression.h.


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

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