walberla::config::Config::Parameter< Type > Class Template Reference

#include <Config.h>

Public Member Functions

 Parameter ()
 
 Parameter (Type parameter, ErrorCode err, std::string key)
 
 operator Type ()
 Converts a Parameter to its value's type. More...
 
ErrorCode error () const
 

Private Attributes

Type parameter_
 
ErrorCode error_
 
std::string key_
 

Constructor & Destructor Documentation

◆ Parameter() [1/2]

template<typename Type >
walberla::config::Config::Parameter< Type >::Parameter ( )
inlineexplicit

◆ Parameter() [2/2]

template<typename Type >
walberla::config::Config::Parameter< Type >::Parameter ( Type  parameter,
ErrorCode  err,
std::string  key 
)
inlineexplicit

Member Function Documentation

◆ error()

template<typename Type >
ErrorCode walberla::config::Config::Parameter< Type >::error ( ) const
inline

◆ operator Type()

template<typename Type >
walberla::config::Config::Parameter< Type >::operator Type ( )
inline

Converts a Parameter to its value's type.

If the parameter's value could not be cast to Type or it has not been found an error is logged and the program is aborted.

Member Data Documentation

◆ error_

template<typename Type >
ErrorCode walberla::config::Config::Parameter< Type >::error_
private

◆ key_

template<typename Type >
std::string walberla::config::Config::Parameter< Type >::key_
private

◆ parameter_

template<typename Type >
Type walberla::config::Config::Parameter< Type >::parameter_
private

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