34 #ifndef CARTOBASE_STREAM_CUIFSTREAM_H 35 #define CARTOBASE_STREAM_CUIFSTREAM_H 43 #ifndef CARTOBASE_STREAM_FISTREAMBUF_H 46 #ifndef CARTOBASE_STREAM_COUNTER_H 49 #ifndef CARTOBASE_STREAM_UNCOMMENT_H 69 #if defined( __GNUC__ ) && ( __GNUC__-0 < 3 ) 81 cuifstream(
const char *name, openmode mode = in);
92 virtual void open(
const char *name, openmode mode = in);
116 virtual bool operator!()
const;
120 virtual bool is_open()
const;
121 void enableUncomment(
bool );
123 virtual bool eof()
const;
134 virtual void init_buffers();
135 virtual void destroy_buffers();
162 return _counter->extractor().line();
bool uncommentEnabled() const
std::ios_base::openmode openmode
open modes are not a standard type in C++, they changed from int in g++ 2.9x to std::ios_base::openmo...
int line() const
Get the current line number.
fistreambuf< UncommentExtractor > * _uncomment
fistreambuf< CounterExtractor > * _counter
Filtering ifstream - counts lines and skips comments.