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-2025, OpenGeoSys Community "
26 "(http://www.opengeosys.org)",
28 TCLAP::ValueArg<std::string> gmsh_path_arg(
29 "g", "gmsh-path",
30 "Input (.msh). The path to the input gmsh binary file", false, "",
31 "INPUT_FILE");
32 cmd.add(gmsh_path_arg);
33 cmd.parse(argc, argv);
34 QApplication app(argc, argv);
35 setlocale(LC_NUMERIC, "C");
36 auto* fc = new OGSFileConverter(gmsh_path_arg.getValue());
37 fc->setWindowTitle(fc->windowTitle());
38 fc->show();
39 int returncode = QApplication::exec();
40 delete fc;
41
42 return returncode;
43}
GITINFOLIB_EXPORT const std::string ogs_version

References GitInfoLib::GitInfo::ogs_version.