All Frameworks  Class Hierarchy  This Framework  Indexes

KnowHow Typedef conflictingImportFunctionPtr

typedef int (*conflictingImportFunctionPtr) (CATBaseUnknown_var, CATBaseUnknown_var)
Function pointer dedicated to the management of conflict when importing a rulebase into another one.
The first argument is the rulebase trying to import, the second argument is the conflicting object. The return value is a boolean telling if the import of the conflicting object is to be done or not.
 int forceImport(CATBaseUnknown_var aRBComp, CATBaseUnknown_var aComp)
 {
   CATIRuleSet_var aTrueRS (aRBComp);

   if (aTrueRS != NULL_var)
   {
     CATIRuleSet_var aTrueRSComp (aComp);
     if (aTrueRSComp != NULL_var)
     {
       aTrueRS->RemoveRuleSet(aTrueRSComp);
       return 1;
     }
     else
     {
       CATIRuleBaseComponent_var aTrueRBComp (aComp);
       if (aTrueRBComp != NULL_var)
       {
         aTrueRS->RemoveRuleBaseComponent(aTrueRS);
         return 1;
       }
     }
   }
   return 0;
 }
 

This object is included in the file: CATIRuleSet.h

Copyright © 2003, Dassault Systèmes. All rights reserved.