MOOCHO (Single Doxygen Collection)
Version of the Day
|
namespace InputStreamHelperPack | |
std::istream & | eat_comment_lines (std::istream &is, char comment_identifier) |
Discards comment lines from an input stream. More... | |
std::istream & InputStreamHelperPack::eat_comment_lines | ( | std::istream & | is, |
char | comment_identifier | ||
) |
Discards comment lines from an input stream.
Call this function to discard text that includes comment lines and lines with only newline chars. Here comment lines are in the tradition of Fortran in that the comment line must begin with the comment identification character (user supplied) and ends with a newline char ('
').
In particular this function will discard any white space before a set of consecutive comment lines and the comment lines and will leave the input steam at the first non-comment line that does not start with '
'.
Definition at line 49 of file InputStreamHelperPack_EatInputComment.cpp.