#include <NamedParameterBase.h>
Definition at line 29 of file NamedParameterBase.h.
◆ VERBOSITY
◆ NamedParameterBase() [1/2]
Definition at line 40 of file NamedParameterBase.cpp.
55 cout <<
"INFO in constructor of NamedParameterBase:" 56 <<
"\n > For parameter named: \"" <<
_name <<
"\"" 57 <<
"\n > You did not provide a filename." 58 <<
"\n > I'll read from stdin. This is completely OK," 59 <<
"\n > but if there is no input from stdin ending in EOF," 60 <<
"\n > the program will stall after this message." 61 <<
"\n > If you find yourself in this situation, press Ctr-d." 62 <<
"\n > In future, run the program as ./program < inputFile.txt" 63 <<
"\n > even if inputFile.txt is just an empty dummy file." 64 <<
"\n > This message is only printed once."
static std::string removeTrailingBlanks(const std::string &s)
static std::string removeLeadingBlanks(const std::string &s)
static bool IveSaidItOnce
◆ NamedParameterBase() [2/2]
◆ ~NamedParameterBase()
NamedParameterBase::~NamedParameterBase |
( |
| ) |
|
|
virtual |
Definition at line 80 of file NamedParameterBase.cpp.
82 cout <<
"WARNING in destructor of NamedParameterBase:" 83 <<
"\n > Hello. My name is \"" <<
_name <<
"\"." 84 <<
"\n > I'm being destroyed, and" 85 <<
"\n > I never even got initialised." 86 <<
"\n > Did you do that deliberatly?"
◆ getFlist()
◆ gotInitialised()
bool MINT::NamedParameterBase::gotInitialised |
( |
| ) |
const |
|
inline |
◆ name()
virtual const std::string& MINT::NamedParameterBase::name |
( |
| ) |
const |
|
inlinevirtual |
◆ quiet()
void MINT::NamedParameterBase::quiet |
( |
bool |
beSo = true | ) |
|
|
inline |
◆ read() [1/3]
bool NamedParameterBase::read |
( |
| ) |
|
Definition at line 102 of file NamedParameterBase.cpp.
static std::istream * _defaultStreamPtr
static std::string _defaultFile
◆ read() [2/3]
bool NamedParameterBase::read |
( |
std::istream & |
is | ) |
|
Definition at line 106 of file NamedParameterBase.cpp.
109 cout <<
"SERIOUS ERROR IN NamedParameterBase::read(std::istream& is)" 110 <<
"\n > call to ParsedParameterFileList::getParsedFile" 111 <<
"\n > return 0 pointer. This is bad. Let's see how long" 112 <<
"\n > I'll last..." << endl;
ParsedParameterFile * _ppF
static ParsedParameterFileList * getFlist()
ParsedParameterFile * getParsedFile(const std::string &fname)
◆ read() [3/3]
bool NamedParameterBase::read |
( |
const std::string & |
fname | ) |
|
Definition at line 118 of file NamedParameterBase.cpp.
121 cout <<
"SERIOUS ERROR IN NamedParameterBase::read(const std::string&)" 122 <<
"\n > with string value = " << fname <<
"." 123 <<
"\n > Call to ParsedParameterFileList::getParsedFile" 124 <<
"\n > return 0 pointer. This is bad. Let's see how long" 125 <<
"\n > I'll last..." << endl;
ParsedParameterFile * _ppF
static ParsedParameterFileList * getFlist()
ParsedParameterFile * getParsedFile(const std::string &fname)
◆ reloadFile()
bool NamedParameterBase::reloadFile |
( |
const std::string & |
id | ) |
|
Definition at line 32 of file NamedParameterBase.cpp.
virtual bool setFromParsedFile()
static ParsedParameterFileList * getFlist()
ParsedParameterFile * reloadFile(const std::string &id)
◆ setDefaultInputFile()
bool NamedParameterBase::setDefaultInputFile |
( |
const std::string & |
fname | ) |
|
|
static |
◆ setDefaultInputStream()
bool NamedParameterBase::setDefaultInputStream |
( |
std::istream & |
str = std::cin | ) |
|
|
static |
Definition at line 24 of file NamedParameterBase.cpp.
static std::istream * _defaultStreamPtr
static std::string _defaultFile
◆ setFromInitString()
bool NamedParameterBase::setFromInitString |
( |
const std::string & |
str | ) |
|
◆ setFromInitStringNoName()
bool NamedParameterBase::setFromInitStringNoName |
( |
const std::string & |
str_in | ) |
|
Definition at line 158 of file NamedParameterBase.cpp.
159 std::string str =
name() +
"\t" + str_in;
virtual const std::string & name() const
virtual bool setFromParsedLine(const ParsedParameterLine &line)=0
◆ setFromParsedFile()
bool NamedParameterBase::setFromParsedFile |
( |
| ) |
|
|
protectedvirtual |
Definition at line 131 of file NamedParameterBase.cpp.
135 cout <<
"WARNING in NamedParameterBase::setFromParsedFile():" 136 <<
"\n No ParsedParameterFile attached!." << endl;
virtual const std::string & name() const
ParsedParameterFile * _ppF
virtual bool setFromParsedLine(const ParsedParameterLine &line)=0
const ParsedParameterLine & find(const std::string &name) const
◆ setFromParsedLine()
Implements MINT::INamedParameter.
Implemented in MINT::NamedParameter< T >, MINT::NamedParameter< double >, MINT::NamedParameter< std::string >, MINT::NamedParameter< int >, MINT::FitParameter, MINT::NamedParameter< T >, MINT::NamedParameter< double >, MINT::NamedParameter< std::string >, MINT::NamedParameter< int >, MINT::NamedParameter< T >, MINT::NamedParameter< double >, MINT::NamedParameter< std::string >, and MINT::NamedParameter< int >.
◆ setPPF()
◆ operator>>
◆ _defaultFile
std::string NamedParameterBase::_defaultFile = "" |
|
staticprotected |
◆ _defaultStreamPtr
std::istream * NamedParameterBase::_defaultStreamPtr = &std::cin |
|
staticprotected |
◆ _gotInitialised
bool MINT::NamedParameterBase::_gotInitialised |
|
protected |
◆ _name
std::string MINT::NamedParameterBase::_name |
|
protected |
◆ _ppF
◆ _quiet
bool MINT::NamedParameterBase::_quiet |
|
protected |
◆ IveSaidItOnce
bool NamedParameterBase::IveSaidItOnce =0 |
|
staticprotected |
The documentation for this class was generated from the following files: