constructor: swallow line
read one line from data file
check existence of tag
Definition at line 68 of file tsoftdata.cc.
References Mcontent, Mhascontent, Mhastag, Mline, Mtag, datrw::tsoft::tagbegin, datrw::tsoft::tagend, and datrw::tsoft::trimws().
76 const string::size_type len=line.length();
78 string::size_type i=1;
79 string::size_type j=line.find_first_of(
tagend, i);
80 Mtag=line.substr(i,j-i);
85 j=line.find_first_not_of (
" ", i);
std::string Mcontent
the content part of the line
bool Mhascontent
true if this line has a content
const char * tagbegin
first character of TSOFT tag
bool Mhastag
true if this line contains a tag
std::string Mline
the actual line
void trimws(std::string &line)
helper function trimws
std::string Mtag
the tag part of the line
const char * tagend
last character of TSOFT tag