Error message on file open

Added optional error string parameter to openFile(). Made sure that
exceptions are handled. Returning false on file open error.
This commit is contained in:
Stein Dale
2015-05-06 13:22:09 +02:00
parent 3bbe7ec2dd
commit 5a3603bf43
3 changed files with 19 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ public:
RifGeoMechReaderInterface();
virtual ~RifGeoMechReaderInterface();
virtual bool openFile(const std::string& fileName) = 0;
virtual bool openFile(const std::string& fileName, std::string* errorMessage = 0) = 0;
virtual bool readFemParts(RigFemPartCollection* geoMechCase) = 0;
virtual std::vector<std::string> stepNames() = 0;