newntui/discovermdi/src/disgraphnode.cpp
//------------------------------------------------------------------------------------
// This private function calculates if parents or childs are enabled.
//------------------------------------------------------------------------------------
This private function calculates if parents or childs are enabled.
This private function calculates if parents or childs are enabled .
void CDisGraphNode::ExtractParentChildEnable() {
CString command;
CString result;
   command.Format("%s %u",m_ChildTestScript,m_NodeID);
   result = m_ParentGraph->Evaluate(command);
   if(atoi(result)>0) m_HasChildren=TRUE;
   else               m_HasChildren=FALSE;
   command.Format("%s %u",m_ParentTestScript,m_NodeID);
   result = m_ParentGraph->Evaluate(command);
   if(atoi(result)>0) m_HasParents=TRUE;
   else               m_HasParents=FALSE;
}
void CDisGraphNode :: ExtractParentChildEnable ( ) { CString command ; CString result ; command . Format ( " " , m_ChildTestScript , m_NodeID ) ; result = m_ParentGraph -> Evaluate ( command ) ; if ( atoi ( result ) > 0 ) m_HasChildren = TRUE ; else m_HasChildren = FALSE ; command . Format ( " " , m_ParentTestScript , m_NodeID ) ; result = m_ParentGraph -> Evaluate ( command ) ; if ( atoi ( result ) > 0 ) m_HasParents = TRUE ; else m_HasParents = FALSE ; }
This private function calculates if parents or childs are enabled.
This private function calculates if parents or childs are enabled .