OGS
main.cpp
Go to the documentation of this file.
1
10#include <tclap/CmdLine.h>
11
12#include <QApplication>
13#include <clocale>
14
15#include "InfoLib/GitInfo.h"
16#include "OGSFileConverter.h"
17
18int main(int argc, char* argv[])
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}
int main(int argc, char *argv[])
Definition main.cpp:21
Git information.
Definition of OGSFileConverter class.
GITINFOLIB_EXPORT const std::string ogs_version