# 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::CLogicCondition Class Reference

CLogicCondition. More...

#include <logic_condition.h>

List of all members.

Public Methods

 CLogicCondition ()
 CLogicCondition. More...

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

void setName (std::string name)
 Set the condition's name. More...

std::string getName () const
 Get the condition's name. More...

void addNode (CLogicConditionNode node)
 Add a condition node. 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

std::vector< CLogicConditionNodeNodes
 condition tree. More...


Private Attributes

std::string _ConditionName
 condition name. More...


Detailed Description

CLogicCondition.

Author:
Stephane Coutelas , Nevrax France
Date:
2001

Definition at line 272 of file logic_condition.h.


Constructor & Destructor Documentation

NLLOGIC::CLogicCondition::CLogicCondition   [inline]
 

CLogicCondition.

Definition at line 285 of file logic_condition.h.

References _ConditionName.


Member Function Documentation

void NLLOGIC::CLogicCondition::addNode CLogicConditionNode    node [inline]
 

Add a condition node.

Parameters:
node  is the new node to add

Definition at line 316 of file logic_condition.h.

References Nodes.

void NLLOGIC::CLogicCondition::fillVarSet std::set< std::string > &    condVars
 

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

Parameters:
condVars  is a set to store the variable names

std::string NLLOGIC::CLogicCondition::getName   const [inline]
 

Get the condition's name.

Returns:
the condition's name

Definition at line 309 of file logic_condition.h.

References _ConditionName.

void NLLOGIC::CLogicCondition::read xmlNodePtr    node
 

Definition at line 610 of file logic_condition.cpp.

References _ConditionName, NLLOGIC::getXMLProp, Nodes, v, and NLLOGIC::xmlCheckNodeName.

void NLLOGIC::CLogicCondition::setLogicStateMachine CLogicStateMachine   logicStateMachine
 

Set the logic state machine.

Parameters:
logicStateMachine  is the state machine containing this block

Definition at line 527 of file logic_condition.cpp.

References nlwarning, and Nodes.

void NLLOGIC::CLogicCondition::setName std::string    name [inline]
 

Set the condition's name.

Parameters:
name  is the condition's name

Definition at line 302 of file logic_condition.h.

References _ConditionName.

bool NLLOGIC::CLogicCondition::testLogic  
 

Test the condition.

Returns:
true if this condition is fulfiled, false else

Definition at line 550 of file logic_condition.cpp.

References Nodes.

void NLLOGIC::CLogicCondition::write xmlNodePtr    node const
 

serial.

Definition at line 598 of file logic_condition.cpp.

References _ConditionName, and Nodes.


Member Data Documentation

std::string NLLOGIC::CLogicCondition::_ConditionName [private]
 

condition name.

Definition at line 275 of file logic_condition.h.

Referenced by CLogicCondition, getName, read, setName, and write.

std::vector<CLogicConditionNode> NLLOGIC::CLogicCondition::Nodes
 

condition tree.

Definition at line 280 of file logic_condition.h.

Referenced by addNode, read, setLogicStateMachine, testLogic, and write.


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