Reads command line. More...

#include <inputParam.hh>

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

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< InputFileinputfile_
 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.

Author
Kersten Schmidt, 2005
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()

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:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich