AddObjects Data Member Function

Adds objects needed for type comparison, including a <TypeInformation> object that represents a sample, a <TypeInformation> object that represents a rule, and an <int32> that specifies whether or not the compared objects must match exactly ( or if subclasses constitute matches ).

Prototype

int32 AddObjects( TypeInformation p_oSampleTypeInfo, TypeInformation p_oRuleTypeInfo, int32 p_nExactMatch )

Parameters

Parameter Type Parameter Name Documentation
TypeInformationp_oSampleTypeInfoA pointer to a <TypeInformation> that represents the type that will be compared against the rule. This is referred to as the 'sample' type.
TypeInformationp_oRuleTypeInfoA pointer to a <TypeInformation> that represents rules against which the sample type will be compared. This is referred to as the 'rule' type.
int32p_nExactMatchAn <int32> that where '0' and '1' represent true or false respectively. If true, the sample type must exactly match the rule type. If false, the sample type may be an exact match or a subclass of the rule type.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.