Skip to content
Snippets Groups Projects
Commit f36b2019 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Update GMCAT to use the new GeoModelIO.

parent 234c9fc1
No related branches found
No related tags found
No related merge requests found
Pipeline #1699921 failed
......@@ -136,9 +136,8 @@ int main(int argc, char ** argv) {
// Loop over files, create the geometry and put it under the world:
//
for (const std::string & file : inputFiles) {
QString fString=file.c_str();
GMDBManager* db = new GMDBManager(fString);
if (!db->isOpen()){
GMDBManager* db = new GMDBManager(file);
if (!db->checkIsDBOpen()){
std::cerr << "Error opening input file " << file << std::endl;
return 6;
}
......@@ -164,11 +163,11 @@ int main(int argc, char ** argv) {
//
// Open a new database:
//
GMDBManager db(outputFile.c_str());
GMDBManager db(outputFile);
//
// check the DB connection
//
if (!db.isOpen()) {
if (!db.checkIsDBOpen()) {
std::cerr << "Error opening output file " << outputFile << std::endl;
return 7;
}
......@@ -182,4 +181,3 @@ int main(int argc, char ** argv) {
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment