bool m_filter_MATLAB_comments
bool m_filter_SH_comments
A class for parsing text files, returning each non-empty and non-comment line, along its line number...
void rewind()
Reset the read pointer to the beginning of the file.
size_t getCurrentLineNumber() const
Return the line number of the last line returned with getNextLine.
void open(const std::string &fil)
Open a file (an alternative to the constructor with a file name)
bool getNextLine(std::string &out_str)
Reads from the file and return the next (non-comment) line, as a std::string.
void enableCommentFilters(bool filter_MATLAB_comments, bool filter_C_comments, bool filter_SH_comments)
Enable/disable filtering of lines starting with "%", "//" or "#", respectively.
CTextFileLinesParser()
Default constructor; should call open() at some moment later.
void close()
Close the file (no need to call it normally, the file is closed upon destruction) ...