Now handling compilation both with and without ODB api

This commit is contained in:
Jacob Støren
2015-04-29 09:26:29 +02:00
parent 936d6553cf
commit a7e38bcda1
4 changed files with 90 additions and 33 deletions

View File

@@ -87,18 +87,21 @@ bool RimGeoMechCase::openGeoMechCase()
return false;
}
RiaPreferences* prefs = RiaApplication::instance()->preferences();
#ifdef USE_ODB_API
readerInterface = new RifOdbReader;
m_geoMechCaseData = new RigGeoMechCaseData;
if (!readerInterface->readFemParts(m_caseFileName().toStdString(), m_geoMechCaseData->femParts()))
if (readerInterface->readFemParts(m_caseFileName().toStdString(), m_geoMechCaseData->femParts()))
{
return false;
// Todo: Default Results stuff, if needed
return true;
}
#endif
// Todo: Default Results stuff, if needed
return true;
return false;
}