CLogicConditionLogicBlock. More...
#include <logic_condition.h>
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 | |
Definition at line 106 of file logic_condition.h.
all condition logic block types
Definition at line 114 of file logic_condition.h.
| NLLOGIC::CLogicConditionLogicBlock::CLogicConditionLogicBlock | ( | ) | [inline] |
Default constructor.
Definition at line 133 of file logic_condition.h.
References SUB_CONDITION, SubCondition, and Type.
| void NLLOGIC::CLogicConditionLogicBlock::fillVarSet | ( | std::set< std::string > & | condVars | ) |
Fill a set with all the variables name referenced by this condition.
| 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.
Definition at line 144 of file logic_condition.h.
Referenced by NLLOGIC::CLogicConditionNode::testLogic().
| void NLLOGIC::CLogicConditionLogicBlock::read | ( | xmlNodePtr | node | ) |
Definition at line 263 of file logic_condition.cpp.
References COMPARISON, ComparisonBlock, NLMISC::fromString(), NLLOGIC::getXMLProp(), NOT, NLLOGIC::CLogicComparisonBlock::read(), SUB_CONDITION, SubCondition, Type, and NLLOGIC::xmlCheckNodeName().
Referenced by NLLOGIC::CLogicConditionNode::read().
| void NLLOGIC::CLogicConditionLogicBlock::setLogicStateMachine | ( | CLogicStateMachine * | logicStateMachine | ) |
Set the logic state machine.
| 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 | ( | ) |
Test the condition.
Definition at line 146 of file logic_condition.cpp.
References _LogicStateMachine, COMPARISON, ComparisonBlock, NLLOGIC::CLogicStateMachine::getCondition(), NLLOGIC::CLogicStateMachine::getName(), nlerror, nlwarning, NOT, SUB_CONDITION, SubCondition, NLLOGIC::CLogicCondition::testLogic(), NLLOGIC::CLogicComparisonBlock::testLogic(), and Type.
Referenced by NLLOGIC::CLogicConditionNode::testLogic().
| void NLLOGIC::CLogicConditionLogicBlock::write | ( | xmlNodePtr | node | ) | const |
serial
Definition at line 241 of file logic_condition.cpp.
References COMPARISON, ComparisonBlock, NOT, SUB_CONDITION, SubCondition, NLMISC::toString(), Type, and NLLOGIC::CLogicComparisonBlock::write().
Referenced by NLLOGIC::CLogicConditionNode::write().
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().
| std::string NLLOGIC::CLogicConditionLogicBlock::SubCondition |
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().
1.6.1