#include <ParsedParameterFile.h>
Definition at line 15 of file ParsedParameterFile.h.
◆ ParsedParameterFile() [1/3]
MINT::ParsedParameterFile::ParsedParameterFile |
( |
std::istream & |
inputStream = std::cin | ) |
|
◆ ParsedParameterFile() [2/3]
ParsedParameterFile::ParsedParameterFile |
( |
const std::string & |
fname | ) |
|
Definition at line 28 of file ParsedParameterFile.cpp.
31 std::ifstream is(fname.c_str());
33 cout <<
"ERROR in ParsedParameterFile constructor from filename:" 34 <<
"\n > status of input stream is bad - file might not exist" 35 <<
"\n > or be otherwise corrupt." 36 <<
"\n > The file name you passes was: \"" << fname <<
"\"." void readStream(std::istream &is)
◆ ParsedParameterFile() [3/3]
◆ find()
Definition at line 81 of file ParsedParameterFile.cpp.
static const ParsedParameterLine dummyLine
const Val & keyFinder(const Key &k, const std::map< Key, Val > &m, const Val &dummy, bool &successFlag)
std::map< std::string, ParsedParameterLine > _lines
◆ ignoreThisLine()
bool ParsedParameterFile::ignoreThisLine |
( |
const std::string & |
line | ) |
|
|
staticprotected |
Definition at line 58 of file ParsedParameterFile.cpp.
59 if(line.empty())
return true;
static const char _ignoreLinesStartingWith[]
◆ numLines()
unsigned int ParsedParameterFile::numLines |
( |
| ) |
const |
◆ OK()
bool ParsedParameterFile::OK |
( |
| ) |
const |
◆ print()
void ParsedParameterFile::print |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 85 of file ParsedParameterFile.cpp.
87 for(map<string, ParsedParameterLine>::const_iterator it =
_lines.begin();
90 os <<
" " << i <<
") " << it->second << endl;
std::map< std::string, ParsedParameterLine > _lines
◆ readStream()
void ParsedParameterFile::readStream |
( |
std::istream & |
is | ) |
|
|
protected |
Definition at line 67 of file ParsedParameterFile.cpp.
69 char line[slmax]={
'\0'};
70 while( is.getline(line, slmax)){
std::map< std::string, ParsedParameterLine > _lines
static bool ignoreThisLine(const std::string &line)
◆ _ignoreLinesStartingWith
const char ParsedParameterFile::_ignoreLinesStartingWith = {'*', '#', '\0'} |
|
staticprotected |
◆ _lines
◆ _statusOK
bool MINT::ParsedParameterFile::_statusOK |
|
protected |
◆ dummyLine
The documentation for this class was generated from the following files: