Class documentation of Concepts

Loading...
Searching...
No Matches

#include <inputParam.hh>

Inheritance diagram for concepts::ProcessParameter:
concepts::OutputOperator

Public Member Functions

 ProcessParameter (InputParameter &input)
 Constructor.
 
 ProcessParameter (InOutParameters &input)
 Constructor, just for file loading.
 
void add (InputParameter &input)
 Adds another object for input parameter.
 
bool apply (int argc, char **argv)
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Protected Attributes

std::unique_ptr< InputFileinputfile_
 Reading input files.
 
Sequence< InputParameter * > inputs_
 List of input parameter objects.
 

Detailed Description

Reads command line.

Writes the parameters or give help description with help of InputParameter objects.

Author
Kersten Schmidt, 2005
Examples
cig_load_input_data.cc, and elasticity2D_tutorial.cc.

Definition at line 81 of file inputParam.hh.

Member Function Documentation

◆ add()

void concepts::ProcessParameter::add ( InputParameter input)
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()

virtual std::ostream & concepts::ProcessParameter::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Member Data Documentation

◆ inputfile_

std::unique_ptr<InputFile> concepts::ProcessParameter::inputfile_
protected

Reading input files.

Definition at line 100 of file inputParam.hh.

◆ inputs_

Sequence<InputParameter*> concepts::ProcessParameter::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: