OGS
main.cpp File Reference

Detailed Description

Definition in file main.cpp.

#include <tclap/CmdLine.h>
#include <QApplication>
#include <clocale>
#include "InfoLib/GitInfo.h"
#include "OGSFileConverter.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 18 of file main.cpp.

19{
20 TCLAP::CmdLine cmd(
21 "A conversion tool for ogs5 and ogs6 files.\n\n"
22 "OpenGeoSys-6 software, version " +
24 ".\n"
25 "Copyright (c) 2012-2024, OpenGeoSys Community "
26 "(http://www.opengeosys.org)",
28 TCLAP::ValueArg<std::string> gmsh_path_arg("g", "gmsh-path",
29 "the path to the gmsh binary",
30 false, "", "path as string");
31 cmd.add(gmsh_path_arg);
32 cmd.parse(argc, argv);
33 QApplication app(argc, argv);
34 setlocale(LC_NUMERIC, "C");
35 auto* fc = new OGSFileConverter(gmsh_path_arg.getValue());
36 fc->setWindowTitle(fc->windowTitle());
37 fc->show();
38 int returncode = QApplication::exec();
39 delete fc;
40
41 return returncode;
42}
GITINFOLIB_EXPORT const std::string ogs_version

References GitInfoLib::GitInfo::ogs_version.