get_Count Method

WRAPPER_API long get_Count() const

 

Description

The get_Count method indicates the number of parameters that are stored in this ParameterCollection.

 

Example

void ParameterCollection_getCount(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);

}

}

}