Definition at line 33 of file getpot_wrapper.hpp.
#include <getpot_wrapper.hpp>
|
| | GetPotWrapper (const int argc, char **argv, const std::string &input) |
| | Identifies if an input file name is provided in argc by the parameter name input. More...
|
| |
| | GetPotWrapper (const int argc, char **argv) |
| | creates a wrapper around the input arguments given to the executable in argc and argv More...
|
| |
| | GetPotWrapper (const std::string &file) |
| | creates a wrapper for the input arguments in the input file named file. More...
|
| |
| virtual | ~GetPotWrapper () |
| |
| GetPot & | get () |
| |
| const char * | operator() (const std::string &nm, const std::string &doc, const char *v) |
| |
| template<typename ValType > |
| ValType | operator() (const std::string &nm, const std::string &doc, const ValType &v) |
| |
| template<typename ValType > |
| ValType | operator() (const std::string &nm, const std::string &doc, const ValType &v, const unsigned int i) |
| |
| void | set_print (bool f) |
| |
◆ GetPotWrapper() [1/3]
| MAST::Utility::GetPotWrapper::GetPotWrapper |
( |
const int |
argc, |
|
|
char ** |
argv, |
|
|
const std::string & |
input |
|
) |
| |
|
inline |
Identifies if an input file name is provided in argc by the parameter name input.
If found, the input parameters are extracted from the input file, otherwise they are obtained from argc.
Definition at line 43 of file getpot_wrapper.hpp.
49 GetPot command_line(argc, argv);
51 input_name = command_line(input,
"");
54 _input =
new GetPot(argc, argv);
56 _input =
new GetPot(input_name);
58 _print = (*_input)(
"print_params",
false);
◆ GetPotWrapper() [2/3]
| MAST::Utility::GetPotWrapper::GetPotWrapper |
( |
const int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
inline |
creates a wrapper around the input arguments given to the executable in argc and argv
Definition at line 66 of file getpot_wrapper.hpp.
67 _input (
new GetPot(argc, argv)),
◆ GetPotWrapper() [3/3]
| MAST::Utility::GetPotWrapper::GetPotWrapper |
( |
const std::string & |
file | ) |
|
|
inline |
creates a wrapper for the input arguments in the input file named file.
Definition at line 74 of file getpot_wrapper.hpp.
◆ ~GetPotWrapper()
| virtual MAST::Utility::GetPotWrapper::~GetPotWrapper |
( |
| ) |
|
|
inlinevirtual |
◆ get()
| GetPot& MAST::Utility::GetPotWrapper::get |
( |
| ) |
|
|
inline |
◆ operator()() [1/3]
| const char* MAST::Utility::GetPotWrapper::operator() |
( |
const std::string & |
nm, |
|
|
const std::string & |
doc, |
|
|
const char * |
v |
|
) |
| |
|
inline |
Definition at line 94 of file getpot_wrapper.hpp.
99 <<
" [Default: v = " << v <<
" ]" << std::endl;
◆ operator()() [2/3]
template<typename ValType >
| ValType MAST::Utility::GetPotWrapper::operator() |
( |
const std::string & |
nm, |
|
|
const std::string & |
doc, |
|
|
const ValType & |
v |
|
) |
| |
|
inline |
Definition at line 106 of file getpot_wrapper.hpp.
110 << nm <<
" : " << doc
111 <<
" [Default: v = " << v <<
" ]" << std::endl;
◆ operator()() [3/3]
template<typename ValType >
| ValType MAST::Utility::GetPotWrapper::operator() |
( |
const std::string & |
nm, |
|
|
const std::string & |
doc, |
|
|
const ValType & |
v, |
|
|
const unsigned int |
i |
|
) |
| |
|
inline |
Definition at line 117 of file getpot_wrapper.hpp.
122 <<
"Vector: " << nm <<
" : " << doc
123 <<
" [ Default: v(i) = " << v <<
" ] " << std::endl;
125 return (*
_input)(nm, v, i);
◆ set_print()
| void MAST::Utility::GetPotWrapper::set_print |
( |
bool |
f | ) |
|
|
inline |
◆ _input
| GetPot* MAST::Utility::GetPotWrapper::_input |
|
protected |
◆ _print
| bool MAST::Utility::GetPotWrapper::_print |
|
protected |
The documentation for this class was generated from the following file: