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

Kersten Schmidt, 2005
Examples, and

Definition at line 81 of file inputParam.hh.

Constructor & Destructor Documentation

◆ ProcessParameter() [1/2]

concepts::ProcessParameter::ProcessParameter ( InputParameter input)


◆ ProcessParameter() [2/2]

concepts::ProcessParameter::ProcessParameter ( InOutParameters input)

Constructor, just for file loading.

Member Function Documentation

◆ add()

void concepts::ProcessParameter::add ( InputParameter input)

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.

Since this function uses the getopt library, it can be invoked only once.
true, if everything was ok.
Examples, and

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Member Data Documentation

◆ inputfile_

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

Reading input files.

Definition at line 100 of file inputParam.hh.

◆ inputs_

Sequence<InputParameter*> concepts::ProcessParameter::inputs_

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:
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich