OGS
CommandLineArgumentParser.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include <string>
5
#include <vector>
6
7
#pragma once
8
9
struct
CommandLineArguments
final
10
{
11
std::string
reference_path
;
12
std::string
project
;
13
std::vector<std::string>
xml_patch_file_names
;
14
std::string
outdir
;
15
std::string
mesh_dir
;
16
std::string
script_dir
;
17
std::string
log_level
;
18
bool
log_parallel
;
19
bool
write_prj
;
20
bool
nonfatal
;
21
bool
reference_path_is_set
;
22
#ifndef _WIN32
23
bool
enable_fpe_is_set
;
24
#endif
// _WIN32
25
};
26
27
CommandLineArguments
parseCommandLineArguments
(
28
int
argc,
char
* argv[],
bool
const
exit_on_exception =
true
);
parseCommandLineArguments
CommandLineArguments parseCommandLineArguments(int argc, char *argv[], bool const exit_on_exception=true)
Definition
CommandLineArgumentParser.cpp:14
CommandLineArguments
Definition
CommandLineArgumentParser.h:10
CommandLineArguments::reference_path_is_set
bool reference_path_is_set
Definition
CommandLineArgumentParser.h:21
CommandLineArguments::script_dir
std::string script_dir
Definition
CommandLineArgumentParser.h:16
CommandLineArguments::nonfatal
bool nonfatal
Definition
CommandLineArgumentParser.h:20
CommandLineArguments::outdir
std::string outdir
Definition
CommandLineArgumentParser.h:14
CommandLineArguments::reference_path
std::string reference_path
Definition
CommandLineArgumentParser.h:11
CommandLineArguments::log_level
std::string log_level
Definition
CommandLineArgumentParser.h:17
CommandLineArguments::xml_patch_file_names
std::vector< std::string > xml_patch_file_names
Definition
CommandLineArgumentParser.h:13
CommandLineArguments::project
std::string project
Definition
CommandLineArgumentParser.h:12
CommandLineArguments::enable_fpe_is_set
bool enable_fpe_is_set
Definition
CommandLineArgumentParser.h:23
CommandLineArguments::log_parallel
bool log_parallel
Definition
CommandLineArgumentParser.h:18
CommandLineArguments::write_prj
bool write_prj
Definition
CommandLineArgumentParser.h:19
CommandLineArguments::mesh_dir
std::string mesh_dir
Definition
CommandLineArgumentParser.h:15
Applications
CLI
CommandLineArgumentParser.h
Generated by
1.14.0