WRAPPER_API long GetNumberOfModifications(void) const
The GetNumberOfModifications method returns the number of modifications that have been made to the DataSource since it was loaded with a call to LoadFile. This includes changes to both base and custom objects.
void DataSource_GetNumberOfModifications(GEOCALCPBW_NAMESPACE::DataSource & data)
{
if(data.GetNumberOfModifications() > 0)
{
data.CommitToFile();
}
}