cartobase  4.5.0
carto::attachable_cuifstream Class Reference

Cette classe n'es l que parce que Dimitri ne voulait pas que je touche sa belle classe cuifstream. More...

#include <cartobase/stream/attachable_cuifstream.h>

Inheritance diagram for carto::attachable_cuifstream:
Collaboration diagram for carto::attachable_cuifstream:

Public Member Functions

 attachable_cuifstream ()
 
 attachable_cuifstream (const char *name)
 
 attachable_cuifstream (std::istream &s)
 
virtual ~attachable_cuifstream ()
 
virtual void attach (std::istream &s, int line_num=1)
 attach to an existing (and open) stream More...
 
virtual void close ()
 
virtual bool operator! () const
 Return the state of both associated streams. More...
 
virtual bool is_open () const
 Is the ifstream open? More...
 
- Public Member Functions inherited from carto::cuifstream
virtual void open (const char *name, openmode mode=in)
 
int line () const
 Get the current line number. More...
 
void enableUncomment (bool)
 
bool uncommentEnabled () const
 
virtual bool eof () const
 
 cuifstream ()
 
 cuifstream (const char *name, openmode mode=in)
 
virtual ~cuifstream ()
 

Protected Member Functions

virtual void init_buffers ()
 
virtual void destroy_buffers ()
 
- Protected Member Functions inherited from carto::cuifstream

Additional Inherited Members

- Public Types inherited from carto::cuifstream
typedef 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::openmode in gcc 3.x More...
 
- Protected Attributes inherited from carto::cuifstream
std::ifstream _base
 
fistreambuf< CounterExtractor > * _counter
 
fistreambuf< UncommentExtractor > * _uncomment
 
bool _enableuncomment
 

Detailed Description

Cette classe n'es l que parce que Dimitri ne voulait pas que je touche sa belle classe cuifstream.

Il aurait suffi de remplacer dans cuifstream la vartiable "en dur" _base par un pointeur, mais a ne lui convenait pas.

Definition at line 49 of file attachable_cuifstream.h.

Constructor & Destructor Documentation

carto::attachable_cuifstream::attachable_cuifstream ( )
carto::attachable_cuifstream::attachable_cuifstream ( const char *  name)
carto::attachable_cuifstream::attachable_cuifstream ( std::istream &  s)
virtual carto::attachable_cuifstream::~attachable_cuifstream ( )
virtual

Member Function Documentation

virtual void carto::attachable_cuifstream::attach ( std::istream &  s,
int  line_num = 1 
)
virtual

attach to an existing (and open) stream

virtual void carto::attachable_cuifstream::close ( )
virtual

Reimplemented from carto::cuifstream.

virtual void carto::attachable_cuifstream::destroy_buffers ( )
protectedvirtual

Reimplemented from carto::cuifstream.

virtual void carto::attachable_cuifstream::init_buffers ( )
protectedvirtual

Reimplemented from carto::cuifstream.

virtual bool carto::attachable_cuifstream::is_open ( ) const
virtual

Is the ifstream open?

Reimplemented from carto::cuifstream.

virtual bool carto::attachable_cuifstream::operator! ( ) const
virtual

Return the state of both associated streams.

Reimplemented from carto::cuifstream.


The documentation for this class was generated from the following file: