|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef LArBadChannelParser2_H
6 #define LArBadChannelParser2_H
40 std::vector< ISLine>
parseISfile(
int nint,
int minString,
41 int firstWildcard=-1);
56 int nint,
int minString,
int firstWildcard);
59 int nint,
int minString,
int firstWildcard);
61 bool stringToInt(
int& theInt,
const std::string& theStr)
const;
67 std::istringstream iss(theStr);
70 iss >> std::dec >> theInt;
71 return !iss.fail() && iss.eof();
bool interpretLine(const std::vector< std::string > &command, ISLine &parsedLine, int nint, int minString, int firstWildcard)
bool stringToInt(int &theInt, const std::string &theStr) const
std::vector< int > intVec
bool fileStatusGood() const
You can use this function to check whether the file was successfully opened for reading.
const std::string m_filename
LArBadChannelParser2(const std::string &filename, MsgStream *const messager)
A parser object must be initialized with the filename that it is to parse.
unsigned int m_linenumber
std::vector< ISLine > parseISfile(int nint, int minString, int firstWildcard=-1)
parse the file using the format "nint consecutive integers and then at least minString strings" and r...
bool parseLine(std::string &readLine, ISLine &parsedLine, int nint, int minString, int firstWildcard)
std::vector< std::string > stringVec