21#define MAX_ROW_LEN 8192
28inline istream& comment_c( istream& strm,
char c ){
29 char buff[MAX_ROW_LEN];
30 while( (strm >> ws) && (strm.peek() == c) ){
31 strm.getline( buff, MAX_ROW_LEN );
45inline istream& comment(istream& strm ){
46 return comment_c( strm,
'#' );
49inline stringstream& find_line_after (stringstream& strm,
const char* str ){
50 char buff[MAX_ROW_LEN];
53 strm.getline( buff, MAX_ROW_LEN-1 );
54 if ( strncmp( buff, str, strlen(str) ) == 0 )
57 strm.clear( ios::failbit );
61inline istream& find_line_after (istream& strm,
const char* str ){
62 char buff[MAX_ROW_LEN];
65 strm.getline( buff, MAX_ROW_LEN-1 );
66 if ( strncmp( buff, str, strlen(str) ) == 0 )
69 strm.clear( ios::failbit );
86ostream &operator<<(ostream &output,
const vector<T> &v) {
90 for(
int i=1; i<v.size(); i++) {
91 output <<
" , " << v[i];
94 output <<
"]" << endl;
Definition projectio.hh:73