# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

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 Methods

 CLogicConditionLogicBlock ()
 Default constructor. More...

bool isNotBlock () const
 Return info about the type of the block. More...

void setLogicStateMachine (CLogicStateMachine *logicStateMachine)
 Set the logic state machine. More...

bool testLogic ()
 Test the condition. More...

void fillVarSet (std::set< std::string > &condVars)
 Fill a set with all the variables name referenced by this condition. More...

void write (xmlNodePtr node) const
 serial. More...

void read (xmlNodePtr node)

Public Attributes

TLogicConditionLogicBlockType Type
 type of this condition block. More...

std::string SubCondition
 name of the sub-condition. More...

CLogicComparisonBlock ComparisonBlock
 comparison block. More...


Private Attributes

CLogicStateMachine_LogicStateMachine
 state machine managing this logic block. More...


Detailed Description

CLogicConditionLogicBlock.

Author:
Stephane Coutelas , Nevrax France
Date:
2001

Definition at line 108 of file logic_condition.h.


Member Enumeration Documentation

enum NLLOGIC::CLogicConditionLogicBlock::TLogicConditionLogicBlockType
 

all condition logic block types.

Enumeration values:
NOT 
COMPARISON 
SUB_CONDITION 

Definition at line 116 of file logic_condition.h.


Constructor & Destructor Documentation

NLLOGIC::CLogicConditionLogicBlock::CLogicConditionLogicBlock   [inline]
 

Default constructor.

Definition at line 135 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

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 146 of file logic_condition.h.

References NOT, and Type.

void NLLOGIC::CLogicConditionLogicBlock::read xmlNodePtr    node
 

Definition at line 265 of file logic_condition.cpp.

References COMPARISON, ComparisonBlock, NLLOGIC::getXMLProp, NOT, SUB_CONDITION, SubCondition, Type, and NLLOGIC::xmlCheckNodeName.

void NLLOGIC::CLogicConditionLogicBlock::setLogicStateMachine CLogicStateMachine   logicStateMachine
 

Set the logic state machine.

Parameters:
logicStateMachine  is the state machine containing this block

Definition at line 126 of file logic_condition.cpp.

References _LogicStateMachine, ComparisonBlock, and nlwarning.

bool NLLOGIC::CLogicConditionLogicBlock::testLogic  
 

Test the condition.

Returns:
true if this condition is fulfiled, false else

Definition at line 148 of file logic_condition.cpp.

References _LogicStateMachine, COMPARISON, ComparisonBlock, condition, nlerror, nlwarning, NOT, SUB_CONDITION, SubCondition, and Type.

void NLLOGIC::CLogicConditionLogicBlock::write xmlNodePtr    node const
 

serial.

Definition at line 243 of file logic_condition.cpp.

References COMPARISON, ComparisonBlock, NOT, SUB_CONDITION, and SubCondition.


Member Data Documentation

CLogicStateMachine* NLLOGIC::CLogicConditionLogicBlock::_LogicStateMachine [private]
 

state machine managing this logic block.

Definition at line 111 of file logic_condition.h.

Referenced by setLogicStateMachine, and testLogic.

CLogicComparisonBlock NLLOGIC::CLogicConditionLogicBlock::ComparisonBlock
 

comparison block.

Definition at line 130 of file logic_condition.h.

Referenced by read, setLogicStateMachine, testLogic, and write.

std::string NLLOGIC::CLogicConditionLogicBlock::SubCondition
 

name of the sub-condition.

Definition at line 127 of file logic_condition.h.

Referenced by CLogicConditionLogicBlock, read, testLogic, and write.

TLogicConditionLogicBlockType NLLOGIC::CLogicConditionLogicBlock::Type
 

type of this condition block.

Definition at line 124 of file logic_condition.h.

Referenced by CLogicConditionLogicBlock, isNotBlock, read, and testLogic.


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