00001 /* This file is part of OMCSNetCPP 00002 00003 OMCSNetCPP is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU Lesser General Public License as published by 00005 the Free Software Foundation; either version 2.1 of the License, or 00006 (at your option) any later version. 00007 00008 OMCSNetCPP is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU Lesser General Public License for more details. 00012 00013 You should have received a copy of the GNU Lesser General Public License 00014 along with OMCSNetCPP; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 */ 00017 00020 #include "concept.h" 00021 #include "find_cfg.h" 00022 #include "debug.h" 00023 00024 bool CSemanticConcept::FindPathTo(const SemanticID a_dstID, 00025 CFindPathConfig &a_config) 00026 { 00027 a_config.VisitNode(); 00028 00029 DPRINT("visiting %s %d %p\n", m_textualName.c_str(), 00030 GetID(), this); 00031 00032 if (m_forwardLinks) 00033 { 00034 for (u_int i = 0;i < MAX_RELATIONS;++i) 00035 { 00036 if (m_forwardLinks[i]) 00037 { 00038 m_forwardLinks[i]-> 00039 FindPathTo(a_dstID, a_config); 00040 } 00041 } 00042 } 00043 00044 a_config.LeaveNode(); 00045 00046 return false; 00047 } 00048 00049
1.3.3