#include <Xabsl2Option.h>
Inheritance diagram for Xabsl2IfElseBlock:


Public Member Functions | |
| Xabsl2IfElseBlock (Xabsl2InputSource &input, Xabsl2Option *subsequentOption, Xabsl2ErrorHandler &errorHandler, Xabsl2Array< Xabsl2State * > &states, Xabsl2Array< double > ¶meters, Xabsl2Symbols &symbols, unsigned long &timeOfOptionExecution, unsigned long &timeOfStateExecution) | |
| Constructor. | |
| ~Xabsl2IfElseBlock () | |
| Destructor. | |
| virtual Xabsl2State * | getNextState () |
| Executes the statement and determines the next active state (can be the same). | |
Private Attributes | |
| Xabsl2BooleanExpression * | ifCondition |
| The boolean expression that is evaluated for the if case. | |
| Xabsl2Statement * | ifStatement |
| The statement that is executed if the if condition is true. | |
| Xabsl2Array< Xabsl2BooleanExpression * > | elseIfConditions |
| The boolean expressions for the else-if cases. | |
| Xabsl2Array< Xabsl2Statement * > | elseIfStatements |
| The statements that are executed if the else-if condition are true. | |
| Xabsl2Statement * | elseStatement |
| The statement that is executed if all if and else-if conditions fail. | |
Definition at line 65 of file Xabsl2Option.h.
|
||||||||||||||||||||||||||||||||||||
|
Constructor. Creates the if / else statement
Definition at line 41 of file Xabsl2Option.cpp. References Xabsl2Array< Xabsl2Statement * >::append(), Xabsl2Array< Xabsl2BooleanExpression * >::append(), Xabsl2BooleanExpression::create(), Xabsl2Statement::createStatement(), elseIfConditions, elseIfStatements, elseStatement, Xabsl2ErrorHandler::error(), Xabsl2ErrorHandler::errorsOccurred, ifCondition, ifStatement, Xabsl2ErrorHandler::message(), Xabsl2InputSource::readValue(), and XABSL2_DEBUG_INIT. |
Here is the call graph for this function:

|
|
Destructor. Deletes all statements and conditions Definition at line 105 of file Xabsl2Option.cpp. References elseIfConditions, elseIfStatements, elseStatement, Xabsl2Array< Xabsl2Statement * >::getSize(), ifCondition, and ifStatement. |
Here is the call graph for this function:

|
|
Executes the statement and determines the next active state (can be the same).
Implements Xabsl2Statement. Definition at line 122 of file Xabsl2Option.cpp. References elseIfConditions, elseIfStatements, elseStatement, Xabsl2Statement::getNextState(), Xabsl2Array< Xabsl2BooleanExpression * >::getSize(), Xabsl2BooleanExpression::getValue(), ifCondition, and ifStatement. |
Here is the call graph for this function:

|
|
The boolean expression that is evaluated for the if case.
Definition at line 98 of file Xabsl2Option.h. Referenced by getNextState(), Xabsl2IfElseBlock(), and ~Xabsl2IfElseBlock(). |
|
|
The statement that is executed if the if condition is true.
Definition at line 101 of file Xabsl2Option.h. Referenced by getNextState(), Xabsl2IfElseBlock(), and ~Xabsl2IfElseBlock(). |
|
|
The boolean expressions for the else-if cases.
Definition at line 104 of file Xabsl2Option.h. Referenced by getNextState(), Xabsl2IfElseBlock(), and ~Xabsl2IfElseBlock(). |
|
|
The statements that are executed if the else-if condition are true.
Definition at line 107 of file Xabsl2Option.h. Referenced by getNextState(), Xabsl2IfElseBlock(), and ~Xabsl2IfElseBlock(). |
|
|
The statement that is executed if all if and else-if conditions fail.
Definition at line 110 of file Xabsl2Option.h. Referenced by getNextState(), Xabsl2IfElseBlock(), and ~Xabsl2IfElseBlock(). |
1.3.6