All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

KnowledgeInterfaces Class CATKweInstanceExtensionAdapter

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---KnowledgeInterfaces.CATIInstanceExtension
        |
        +---CATKweInstanceExtensionAdapter
 

Usage: you can derive this class.


public class CATKweInstanceExtensionAdapter

This class should be used as an adapter for feature extensions that want to be used through Knowledge Expert, the Search and GenerativeKnowledge.
It is an adapter of CATIInstanceExtension interface. This interface is used by a feature extension to declare its types and attributes so that they can be used in Knowledge Expert to identify an object through its type. It is also used by GenerativeKnwoledge and the search of CATIA In addition to extension, you must create the TIE object with - TIEchain_CATIInstanceExtension

See also:
CATIInstance, CATIType, CATIValue


Constructor and Destructor Index


o CATKweInstanceExtensionAdapter()
o ~CATKweInstanceExtensionAdapter()

Method Index


o GetValue(CATUnicodeString&)
Gets an attribute value.
o ListSupportedTypes(CATListValCATIType_var&)
Fills the given list with types supported by this feature extension.
o SetValue(CATUnicodeString&,CATIValue_var&)
Sets an attribute value.

Constructor and Destructor


o CATKweInstanceExtensionAdapter
public CATKweInstanceExtensionAdapter()
o ~CATKweInstanceExtensionAdapter
public virtual ~CATKweInstanceExtensionAdapter()

Methods


o GetValue
public virtual CATIValue* GetValue( const CATUnicodeString& iKey)
Gets an attribute value.
Default implementation does nothing, and returns NULL
Parameters:
iKey
Name of the attribute.
Returns:
iValue Value of the attribute (an AddRef is done, if not NULL).
o ListSupportedTypes
public virtual HRESULT ListSupportedTypes(CATListValCATIType_var& iolListOfCATIType)const
Fills the given list with types supported by this feature extension.
The list is input may not be empty. This method is supposed to add some types to the list.
Default implementation does nothing
Parameters:
iolListOfCATIType
the filled list.
o SetValue
public virtual HRESULT SetValue( const CATUnicodeString& iKey,
const CATIValue_var& iValue)
Sets an attribute value.
Default implementation does nothing
Parameters:
iKey
Name of the attribute.
iValue
Value of the attribute.

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

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