public ScalarValue *get_ScalarItem(const BmgChar *name) const
The get_ScalarItem method returns the value of the specified scalar parameter. If the specified name does not correspond to parameter in this ParameterCollection, a GeoCalcException will be thrown with an ErrorCode indicating ParameterNotFound. If the specified name corresponds to a parameter with a value that is not represented by a scalar, a GeoCalcException will be thrown with an ErrorCode indicating ParameterTypeMismatch.
void ParameterCollection_getScalarItem()
{
GeoCalc.ParameterCollection pc;
BmgChar * scalarParName = L"ScalarParameter";
GeoCalc.ScalarValue scalarVal;
pc.AddScalarItem(scalarParName);
pc.set_ScalarItem(scalarParName, scalarVal);
GeoCalc.ScalarValue * sv = pc.get_ScalarItem(scalarParName);
delete sv;
}