MachiningUseItf Interface DELIMfgFeatureContainer

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface DELIMfgFeatureContainer

Interface to manage the machining feature container.

Role: manage the machining feature container


Method Index


o ListMachiningFeature(CATIdent,CATListPtrCATBaseUnknown&)
Searches all objects implementing a specific interface into the container.

Methods


o ListMachiningFeature
public virtual ListMachiningFeature( const interfaceID,
ioListObj)
Searches all objects implementing a specific interface into the container.

role:
This method searches all objects implementing a specified interface given in argument and fill the sequence with them. Each object contained in the returned sequence must be released after user.

example:
   CATIMfgFeatureContainer* pCATIContainer = ... // we suppose that pointer is well initialized.
   CATListPtrCATBaseUnknown ListObj;
   CATLONG32 NbObj = pCATIContainer->ListMachiningFeature("CATIexample", ListObj);
   for (int i=0; i < NbObj; i++)
   {
     CATIexample* pCATIexample = NULL;
     if (ListObj[i] && SUCCEEDED(ListObj[i]->QueryInterface(IID_CATIexample, (void**)&pCATIexample))
     {
       pCATIexample->Release();
       pCATIexample = NULL;
       ListObj[i]->Release();
       ListObj[i] = NULL;;
     }
   }
Parameters:
interfaceID
The name of the interface searched.
ioListObj
The list of all objects found that implement this interface. Each object of the list must be release.
Returns:
The number of objects found.

This object is included in the file: DELIMfgFeatureContainer.h
If needed, your Imakefile.mk should include the module: MachiningUseItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.