31 std::vector< std::pair< std::string, std::string> >
fAllLines;
51 IO(
const char* filepattern);
109 std::istringstream
in(data.c_str());
114 values.push_back(tmp);
124 std::istringstream
in(data.c_str());
126 if(
in.good())
return true;
138 if(data.empty())
return false;
140 std::istringstream
in(data.c_str());
void Dump(std::ostream &out=std::cout) const
dumps fAllLines
General option file parser.
static const unsigned sLinesize
maximum line size
std::string GetNextLineData(const char *tag, const char *key)
bool GetAllOpt(const char *tag, const char *key, std::vector< T > &values)
reads a vector of T
bool GetOpt(const char *tag, const char *key, std::vector< T > &values) const
reads a vector of T
std::vector< std::pair< std::string, std::string > > fAllLines
all non empty, uncommented lines
bool IsZombie() const
true if constructor went wrong
friend std::ostream & operator<<(std::ostream &out, IO &io)
dumps fAllLines
std::string fCurtag
current tag
bool ParseFile(const char *filename)
parse one file
std::string fCurkey
current key
std::vector< std::vector< double > > tmp
std::string GetLineData(const char *tag, const char *key) const
char data[epos_bytes_allocation]
IO(const char *filepattern)
builds IO from files matching filepattern