WRAPPER_API void set_ScalarItem(const BmgChar *name, const ScalarValue &value)
The set_ScalarItem sets the value of the specified parameter. The first argument to this method is the name of the parameter, and the second argument is the string that gives the value of the 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_setScalarItem()
{
GEOCALCPBW_NAMESPACE::ParameterCollection pc;
BmgChar * scalarParName = L"ScalarParameter";
GEOCALCPBW_NAMESPACE::ScalarValue scalarVal;
pc.AddScalarItem(scalarParName);
pc.set_ScalarItem(scalarParName, scalarVal);
GEOCALCPBW_NAMESPACE::ScalarValue * sv = pc.get_ScalarItem(scalarParName);
delete sv;
}