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 )
162 return _counter->extractor().line();
Filtering ifstream - counts lines and skips comments.
virtual void init_buffers()
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...
virtual void destroy_buffers()
fistreambuf< UncommentExtractor > * _uncomment
void enableUncomment(bool)
int line() const
Get the current line number.
cuifstream(const char *name, openmode mode=in)
virtual void open(const char *name, openmode mode=in)
virtual bool is_open() const
Is the ifstream open?
virtual bool operator!() const
Return the state of both associated streams.
fistreambuf< CounterExtractor > * _counter