{
if (refUserInfo(i).Search(REFERENCE_COUNTER) != -1)
{
- try
+ TCollection_AsciiString aToken = refUserInfo(i).Token(" ", 2);
+ if (aToken.IsIntegerValue())
{
- OCC_CATCH_SIGNALS theReferencesCounter = refUserInfo(i).Token(" ", 2).IntegerValue();
+ theReferencesCounter = aToken.IntegerValue();
}
- catch (Standard_Failure const&)
+ else
{
- // std::cout << "warning: could not read the reference counter in " << aFileName <<
- // std::endl;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the reference counter in ").Cat(aFileName).Cat("\0");
if (!theMsgDriver.IsNull())
{
if (refUserInfo(i).Search(MODIFICATION_COUNTER) != -1)
{
- try
+ TCollection_AsciiString aToken = refUserInfo(i).Token(" ", 2);
+ if (aToken.IsIntegerValue())
{
- OCC_CATCH_SIGNALS theVersion = refUserInfo(i).Token(" ", 2).IntegerValue();
+ theVersion = aToken.IntegerValue();
}
- catch (Standard_Failure const&)
+ else
{
- // std::cout << "warning: could not read the version in " << aFileName << std::endl;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the version in ").Cat(aFileName).Cat("\0");
if (!theMsgDriver.IsNull())
aDataSource->GetGeom(anIter.Key(), Standard_False, aCoords, aNbNodes, aType);
Standard_Real aScaleValue;
- try
+ if (aDelta > Precision::Confusion())
{
- OCC_CATCH_SIGNALS
- aScaleValue = (aCoords.Value(1) - (Standard_Real)aMinX) / aDelta;
+ aScaleValue = (aCoords.Value(1) - aMinX) / aDelta;
}
- catch (Standard_Failure const&)
+ else
{
- aScaleValue = 0;
+ aScaleValue = 0.0;
}
aScaleMap.Bind(anIter.Key(), aScaleValue);