concepts::ProcessParameter Class Reference
Reads command line. More...
#include <inputParam.hh>
Inheritance diagram for concepts::ProcessParameter:
Public Member Functions | |
void | add (InputParameter &input) |
Adds another object for input parameter. More... | |
bool | apply (int argc, char **argv) |
Process the command line arguments. More... | |
ProcessParameter (InOutParameters &input) | |
Constructor, just for file loading. More... | |
ProcessParameter (InputParameter &input) | |
Constructor. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
std::unique_ptr< InputFile > | inputfile_ |
Reading input files. More... | |
Sequence< InputParameter * > | inputs_ |
List of input parameter objects. More... | |
Detailed Description
Reads command line.
Writes the parameters or give help description with help of InputParameter
objects.
- Examples
- cig_load_input_data.cc, and elasticity2D_tutorial.cc.
Definition at line 81 of file inputParam.hh.
Constructor & Destructor Documentation
◆ ProcessParameter() [1/2]
concepts::ProcessParameter::ProcessParameter | ( | InputParameter & | input | ) |
Constructor.
◆ ProcessParameter() [2/2]
concepts::ProcessParameter::ProcessParameter | ( | InOutParameters & | input | ) |
Constructor, just for file loading.
Member Function Documentation
◆ add()
|
inline |
Adds another object for input parameter.
Definition at line 88 of file inputParam.hh.
◆ apply()
bool concepts::ProcessParameter::apply | ( | int | argc, |
char ** | argv | ||
) |
Process the command line arguments.
- Bug:
- Since this function uses the getopt library, it can be invoked only once.
- Returns
- true, if everything was ok.
- Examples
- cig_load_input_data.cc, and elasticity2D_tutorial.cc.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Member Data Documentation
◆ inputfile_
|
protected |
Reading input files.
Definition at line 100 of file inputParam.hh.
◆ inputs_
|
protected |
List of input parameter objects.
Definition at line 102 of file inputParam.hh.
The documentation for this class was generated from the following file:
- toolbox/inputParam.hh