All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

CATAnalysisResources Class CATESamEnumManager

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATESamEnumManager
 

Usage: you can derive this class.


public class CATESamEnumManager

Adaptor for implementing CATISamEnumManager interface.
This inferface is to be implemented on a basic component build by derivation of SAMListManager.

DataExtension Implementation is mandatory.


Constructor and Destructor Index


o CATESamEnumManager()
Default constructor.
o ~CATESamEnumManager()
Destructor.

Method Index


o GetList(CATListValCATUnicodeString&)
Retrieves the list of string.
o GetMode(CATSamSelectionMode&)
Retrieves the mode of the selection.
o GetResult(CATUnicodeString&,CATListValCATUnicodeString&,CATListValCATUnicodeString&,CATLISTV(CATBaseUnknown_var)&)
Retrieves the list of features (basic component or analysis entity) associated to a string.
o GetSelected(CATUnicodeString&,int&)
Retrieves the string and the index (position in the list of an enumerated type) which correspond with a string selected in a list.
o SetSelected(int)
Set the value of the enumerate.

Constructor and Destructor


o CATESamEnumManager
public CATESamEnumManager()
Default constructor.
o ~CATESamEnumManager
public virtual ~CATESamEnumManager()
Destructor.

Methods


o GetList
public virtual HRESULT GetList(CATListValCATUnicodeString& oList)
Retrieves the list of string.
Parameters:
oList
List of string
o GetMode
public virtual HRESULT GetMode(CATSamSelectionMode& oMode)
Retrieves the mode of the selection.
Parameters:
oMode

Legal values:
  • SAM_OR The basic component or entity comes from an enumerated type.
  • SAM_AND Otherwise.
o GetResult
public virtual HRESULT GetResult( const CATUnicodeString& iString,
CATListValCATUnicodeString& oFeatureName,
CATListValCATUnicodeString& oFeatureType,
CATLISTV(CATBaseUnknown_var)& oListOfCATICkeType)
Retrieves the list of features (basic component or analysis entity) associated to a string.
Parameters:
iString
input string from the list
oFeatureName
features instance name
oFeatureType
features type
oListOfCATICkeType
type of the instance to create if Literal
o GetSelected
public virtual HRESULT GetSelected(CATUnicodeString& oString,
int& oIndex)
Retrieves the string and the index (position in the list of an enumerated type) which correspond with a string selected in a list.
Parameters:
oString
String which corresponds with the selected string in a box
oIndex
Index or position in the list of an enumerated type
o SetSelected
public virtual HRESULT SetSelected(int iIndex)
Set the value of the enumerate.
Parameters:
iIndex
Index of selected line

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

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