WRAPPER_API const BmgChar *ParameterNameAtIndex(long index) const
The ParameterNameAtIndex method indicates the name of the parameter at the specified index in this ParameterCollection. The ParameterCollection is a 0-based collection. If the specified index is not within the bounds of the ParameterCollection, a GeoCalcException will be thrown with an ErrorCode specifying InvalidValue.
void ParameterCollection_ParameterNameAtIndex(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);
}
}
}