Public Methods | |
NoCommentFilter (istream &is) | |
~NoCommentFilter () | |
int | put (int c) |
int | get () |
int | sync () |
void | close () |
Private Attributes | |
istream & | is_ |
Underlying istream from where the filter takes its input. More... |
Definition at line 21 of file nocomment.h.
|
Definition at line 23 of file nocomment.h. 00023 : is_(is) {} |
|
Definition at line 24 of file nocomment.h. 00024 {} |
|
Definition at line 25 of file nocomment.h. 00025 { return EOF; } |
|
Definition at line 9 of file nocomment.C. 00009 { 00010 if (is_) { 00011 int c = is_.get(); 00012 if (c=='#') { 00013 while ( (is_) && (c!='\n') && (c!=EOF) ) 00014 c = is_.get(); 00015 } 00016 if (!is_) 00017 c = EOF; 00018 return c; 00019 } 00020 else 00021 return EOF; 00022 } |
|
Definition at line 27 of file nocomment.h. 00027 { return -1; } |
|
Definition at line 28 of file nocomment.h. 00028 {} |
|
Underlying istream from where the filter takes its input.
Definition at line 31 of file nocomment.h. |