34 std::vector<ALIstring> wl;
35 typedef std::map< ALIint, std::pair<ALIstring,ALIstring>, std::less<ALIint> > miss;
37 miss::iterator missite;
42 if( wl[0] ==
"CAL:" || wl[0] ==
"UNK:" ) {
44 theEntries[
ALIUtils::getInt( wl[1] )] = std::pair<ALIstring,ALIstring>( wl[2], wl[3] );
46 }
else if( wl[0].substr(0,5) ==
"CORR:" ) {
48 int p1 = wl[1].find(
'(');
49 int p2 = wl[1].find(
')');
52 std::cerr <<
"!!!ERROR: ErrorCorrelationMgr::readFromReportFile. Word found that starts with '(' but has no ')'" << wl[1] << std::endl;
56 missite = theEntries.find( nent );
57 std::pair<ALIstring,ALIstring> entry1 = (*missite).second;
63 std::cerr <<
"!!!ERROR: ErrorCorrelationMgr::readFromReportFile. Word found that starts with '(' but has no ')'" << wl[2] << std::endl;
67 missite = theEntries.find( nent );
68 std::pair<ALIstring,ALIstring> entry2 = (*missite).second;
75 std::cout <<
" ErrorCorrelationMgr: correlation created " << entry1.first <<
" " << entry1.second <<
" " << entry2.first <<
" " << entry2.second <<
" " << wl[3] << std::endl;
81 std::cout <<
" ErrorCorrelationMgr: correlation updated " << entry1.first <<
" " << entry1.second <<
" " << entry2.first <<
" " << entry2.second <<
" " << wl[3] << std::endl;
static ALIFileIn & getInstance(const ALIstring &name)
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
ALIint getWordsInLine(std::vector< ALIstring > &wl)
std::vector< ErrorCorrelation * > theCorrs
static void dumpVS(const std::vector< ALIstring > &wl, const std::string &msg, std::ostream &outs=std::cout)
dumps a vector of strings with a message to outs
std::vector< ErrorCorrelation * >::iterator findErrorCorrelation(pss &entry1, pss &entry2)
static int getInt(const ALIstring &str)
Convert a string to an integer, checking that it is really an integer.