65 fin.open( filename.c_str() );
68 <<
"Could not open file '" << filename.c_str() <<
"'" << endl;
79 while ( fin.peek() != EOF ) {
83 while ( ( c = fin.get() ) !=
'\n' && c != EOF && i <
MAXBUF ) {
89 <<
"Error in EvtParser: line:" << line <<
" to long" << endl;
100 }
while ( buf[i - 1] != 0 );
102 string tmp( buf, strlen( buf ) );
105 istringstream ist( tmp );
106 while ( ist >> buf2 ) {
110 if ( buf2[i] ==
';' ) {
114 }
while ( buf2[i++] != 0 );
115 if ( buf2[0] != 0 ) {
135 int* newlinelist =
new int[new_length];
136 std::string* newtokenlist =
new std::string[new_length];
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
std::string * m_tokenlist
int getLineofToken(int i)
int read(const std::string filename)
void addToken(int line, const std::string &string)
const std::string & getToken(int i)