get_ParameterType Method

WRAPPER_API ParameterCollection::ItemType get_ParameterType(const wchar_t *name) const

 

Description

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.

 

Example

void ParameterCollection_getParameterType(GeoCalcPBW::ParameterCollection & pc)

{

for(int i = 0; i < pc.get_Count(); i++)

{

const wchar_t * parName = pc.ParameterNameAtIndex(i);

if(pc.get_ParameterType(parName) == GeoCalcPBW::ParameterCollection::ItemType::StringValue)

{

const wchar_t * stringVal = pc.get_StringItem(parName);

}

}

}