NLLOGIC::CLogicConditionLogicBlock Class Reference

CLogicConditionLogicBlock. More...

#include <logic_condition.h>

List of all members.

Public Types

enum  TLogicConditionLogicBlockType { NOT = 0, COMPARISON, SUB_CONDITION }
 

all condition logic block types

More...

Public Member Functions

 CLogicConditionLogicBlock ()
 Default constructor.
bool isNotBlock () const
 Return info about the type of the block.
void setLogicStateMachine (CLogicStateMachine *logicStateMachine)
 Set the logic state machine.
bool testLogic ()
 Test the condition.
void fillVarSet (std::set< std::string > &condVars)
 Fill a set with all the variables name referenced by this condition.
void write (xmlNodePtr node) const
 serial
void read (xmlNodePtr node)

Public Attributes

TLogicConditionLogicBlockType Type
 type of this condition block
std::string SubCondition
 name of the sub-condition
CLogicComparisonBlock ComparisonBlock
 comparison block

Private Attributes

CLogicStateMachine_LogicStateMachine
 state machine managing this logic block

Detailed Description

CLogicConditionLogicBlock.

Author:
Stephane Coutelas
Nevrax France
Date:
2001

Definition at line 106 of file logic_condition.h.


Member Enumeration Documentation

all condition logic block types

Enumerator:
NOT 
COMPARISON 
SUB_CONDITION 

Definition at line 114 of file logic_condition.h.


Constructor & Destructor Documentation

NLLOGIC::CLogicConditionLogicBlock::CLogicConditionLogicBlock (  )  [inline]

Default constructor.

Definition at line 133 of file logic_condition.h.

References SUB_CONDITION, SubCondition, and Type.


Member Function Documentation

void NLLOGIC::CLogicConditionLogicBlock::fillVarSet ( std::set< std::string > &  condVars  ) 

Fill a set with all the variables name referenced by this condition.

Parameters:
condVars a set to store the variable names

Definition at line 191 of file logic_condition.cpp.

References _LogicStateMachine, COMPARISON, ComparisonBlock, NLLOGIC::CLogicCondition::fillVarSet(), NLLOGIC::CLogicStateMachine::getCondition(), SUB_CONDITION, SubCondition, Type, and NLLOGIC::CLogicComparisonBlock::VariableName.

Referenced by NLLOGIC::CLogicConditionNode::fillVarSet().

bool NLLOGIC::CLogicConditionLogicBlock::isNotBlock (  )  const [inline]

Return info about the type of the block.

Returns:
true if this block is a NOT block

Definition at line 144 of file logic_condition.h.

References NOT, and Type.

Referenced by NLLOGIC::CLogicConditionNode::testLogic().

void NLLOGIC::CLogicConditionLogicBlock::read ( xmlNodePtr  node  ) 
void NLLOGIC::CLogicConditionLogicBlock::setLogicStateMachine ( CLogicStateMachine logicStateMachine  ) 

Set the logic state machine.

Parameters:
logicStateMachine is the state machine containing this block

Definition at line 124 of file logic_condition.cpp.

References _LogicStateMachine, ComparisonBlock, nlwarning, and NLLOGIC::CLogicComparisonBlock::setLogicStateMachine().

Referenced by NLLOGIC::CLogicConditionNode::setLogicStateMachine().

bool NLLOGIC::CLogicConditionLogicBlock::testLogic (  ) 
void NLLOGIC::CLogicConditionLogicBlock::write ( xmlNodePtr  node  )  const

Member Data Documentation

state machine managing this logic block

Definition at line 109 of file logic_condition.h.

Referenced by fillVarSet(), setLogicStateMachine(), and testLogic().

comparison block

Definition at line 128 of file logic_condition.h.

Referenced by fillVarSet(), read(), setLogicStateMachine(), testLogic(), and write().

name of the sub-condition

Definition at line 125 of file logic_condition.h.

Referenced by CLogicConditionLogicBlock(), fillVarSet(), read(), testLogic(), and write().

type of this condition block

Definition at line 122 of file logic_condition.h.

Referenced by CLogicConditionLogicBlock(), fillVarSet(), isNotBlock(), read(), testLogic(), and write().


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

Generated on Thu Jan 7 08:30:16 2010 for NeL by  doxygen 1.6.1