BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::Arguments Class Reference

Command-line argument parsing. More...

#include <cl_Arguments.hpp>

Inheritance diagram for belfem::Arguments:
[legend]
Collaboration diagram for belfem::Arguments:
[legend]

Public Member Functions

 Arguments (int &argc, char *argv[])
 The constructor also handles the flags all BELFEM executables share, GNU style: -v [N], -vN, –verbose [N] and –verbose=N set the info level of the global logger; without a number, the level defaults to InfoLevel::Everything.
virtual ~Arguments ()=default
const Cell< string > & data () const
 returns a cell with arguments as strings
const stringdata (const index_t aIndex) const
 access argument by index

Protected Attributes

Cell< stringmArguments

Detailed Description

Command-line argument parsing.

See also
Core Module Overview

Constructor & Destructor Documentation

◆ Arguments()

belfem::Arguments::Arguments ( int & argc,
char * argv[] )

The constructor also handles the flags all BELFEM executables share, GNU style: -v [N], -vN, –verbose [N] and –verbose=N set the info level of the global logger; without a number, the level defaults to InfoLevel::Everything.

Subclasses must not reuse -v or –verbose ( -V / –version is the conventional pair for a version flag ).

◆ ~Arguments()

virtual belfem::Arguments::~Arguments ( )
virtualdefault

Reimplemented in belfem::gastables::Arguments.

Member Function Documentation

◆ data() [1/2]

const Cell< string > & belfem::Arguments::data ( ) const

returns a cell with arguments as strings

◆ data() [2/2]

const string & belfem::Arguments::data ( const index_t aIndex) const

access argument by index

Member Data Documentation

◆ mArguments

Cell< string > belfem::Arguments::mArguments
protected

The documentation for this class was generated from the following files: