KnowledgeInterfaces CATAttributeComputedAdapter
Usage: you can derive this class.
public class CATAttributeComputedAdapter
CAA2 Adapter to CATIAttributeComputed Interface.
Role: This class must be derived to implement CATIAttributeComputed.
CATIAttributeComputed is the interface used by Knowledgeware to delegate the read and write of computed attributes.
- See also:
- , , ,
Constructor and Destructor Index
- o
CATAttributeComputedAdapter()
- Constructs the adapter.
- o
~CATAttributeComputedAdapter()
- Deletes the adapter.
Method Index
- o
GetValue(CATICkeObject*,CATUnicodeString&,CATIType_var&)
- Provides the value of a computed attribute on a given object.
- o
IsMeaningful(CATICkeObject*)
- Indicates if the computed attribute can be computed on this object.
- o
SetValue(CATICkeObject*,CATUnicodeString&,CATIType_var&,CATIValue_var&)
- "Valuates" the value of a computed attribute on a given object by translating it and propagating to real object.
Constructor and Destructor
o CATAttributeComputedAdapter
public CATAttributeComputedAdapter( | ) |
-
Constructs the adapter.
o ~CATAttributeComputedAdapter
public virtual ~CATAttributeComputedAdapter( | ) |
-
Deletes the adapter.
Methods
o GetValue
public virtual GetValue( | | iObject, |
| const | iAttributeName, |
| const | iType) |
-
Provides the value of a computed attribute on a given object.
Default implementation returns NULL.
- Parameters:
-
- iObject
- Knowledge object on which we want to compute an attribute.
- iAttributeName
- Name of the attribute in the Knowledge dictionary (internal name)
- oValue
- Value that we will read on the attribute.
- iType
- Useless
- Returns:
- the value if succeeded, NULL instead. An AddRef must be done
o IsMeaningful
public virtual IsMeaningful( | | iObject) |
-
Indicates if the computed attribute can be computed on this object.
Default implementation returns FALSE.
- Parameters:
-
- iObject
- Knowledge object on which we want to "valuate" an attribute.
- Returns:
-
- TRUE if the object is valid.
- FALSE if the object is not valid.
o SetValue
public virtual SetValue( | | iObject, |
| const | iAttributeName, |
| const | iType, |
| const | iValue) |
-
"Valuates" the value of a computed attribute on a given object by translating it and propagating to real object.
Default implementation returns E_FAIL.
- Parameters:
-
- iObject
- Knowledge object on which we want to "valuate" an attribute.
- iAttributeName
- Name of the attribute in the Knowledge dictionary (internal name)
- iType
- Useless
- oValue
- Value that we will "put" on the object
- Returns:
-
- E_INVALIDARG if the attribute not supported, or object NULL.
- S_OK if the attribute has been put correctly
- E_FAIL if the valuation has failed.
This object is included in the file: CATAttributeComputedAdapter.h
If needed, your Imakefile.mk should include the module: KnowledgeItf
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.