BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_Arguments.hpp
Go to the documentation of this file.
1
/*
2
* BELFEM -- The Berkeley Lab Finite Element Framework
3
* Copyright (c) 2026, The Regents of the University of California,
4
* through Lawrence Berkeley National Laboratory (subject to receipt of any required
5
* approvals from the U.S. Dept. of Energy). All rights reserved.
6
*
7
* Developers: Christian Messe, Gregory Giard
8
*
9
* See the top-level LICENSE file for the complete license and disclaimer.
10
*/
11
12
#ifndef BELFEM_CL_ARGUMENTS_HPP
13
#define BELFEM_CL_ARGUMENTS_HPP
14
15
#include "
typedefs.hpp
"
16
#include "
cl_Cell.hpp
"
17
namespace
belfem
18
{
19
// a basic argument class to be extended by any other executable
26
class
Arguments
27
{
28
//------------------------------------------------------------------------------
29
protected
:
30
//------------------------------------------------------------------------------
31
32
// list of arguments that were passed to the executable
33
Cell< string >
mArguments
;
34
35
//------------------------------------------------------------------------------
36
public
:
37
//------------------------------------------------------------------------------
38
46
Arguments
(
int
& argc,
char
* argv[] );
47
48
//------------------------------------------------------------------------------
49
50
virtual
~Arguments
() =
default
;
51
52
//------------------------------------------------------------------------------
53
57
const
Cell< string >
&
58
data
()
const
;
59
60
//------------------------------------------------------------------------------
61
65
const
string
&
66
data
(
const
index_t
aIndex )
const
;
67
68
//------------------------------------------------------------------------------
69
private
:
70
//------------------------------------------------------------------------------
71
75
void
76
set_verbosity_from_arguments();
77
78
//------------------------------------------------------------------------------
79
};
80
//------------------------------------------------------------------------------
81
82
83
84
//------------------------------------------------------------------------------
85
86
87
//------------------------------------------------------------------------------
88
}
89
#endif
//BELFEM_CL_ARGUMENTS_HPP
cl_Cell.hpp
belfem::Arguments::Arguments
Arguments(int &argc, char *argv[])
The constructor also handles the flags all BELFEM executables share, GNU style: -v [N],...
Definition
cl_Arguments.cpp:38
belfem::Arguments::~Arguments
virtual ~Arguments()=default
belfem::Arguments::data
const Cell< string > & data() const
returns a cell with arguments as strings
Definition
cl_Arguments.cpp:71
belfem::Arguments::mArguments
Cell< string > mArguments
Definition
cl_Arguments.hpp:33
belfem::Cell< string >
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::index_t
uint32_t index_t
Definition
typedefs.hpp:52
typedefs.hpp
src
core
cl_Arguments.hpp
Generated by
1.18.0