WRAPPER_API ParameterCollection::ItemType get_ParameterType(const BmgChar *name) const
The get_ParameterType method indicates the type of the parameter with the specified name, according to the ItemType enumeration. If the specified name does not correspond to parameter in this ParameterCollection, a GeoCalcException will be thrown with an ErrorCode indicating ParameterNotFound.
void ParameterCollection_getParameterType(GEOCALCPBW_NAMESPACE::ParameterCollection & pc)
{
for(int i = 0; i < pc.get_Count(); i++)
{
const BmgChar * parName = pc.ParameterNameAtIndex(i);
if(pc.get_ParameterType(parName) == GEOCALCPBW_NAMESPACE::ParameterCollection::ItemType::StringValue)
{
const BmgChar * stringVal = pc.get_StringItem(parName);
}
}
}