cartobase
5.0.5
|
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>
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 |
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.
carto::attachable_cuifstream::attachable_cuifstream | ( | ) |
carto::attachable_cuifstream::attachable_cuifstream | ( | const char * | name | ) |
carto::attachable_cuifstream::attachable_cuifstream | ( | std::istream & | s | ) |
|
virtual |
|
virtual |
attach to an existing (and open) stream
|
virtual |
Reimplemented from carto::cuifstream.
|
protectedvirtual |
Reimplemented from carto::cuifstream.
|
protectedvirtual |
Reimplemented from carto::cuifstream.
|
virtual |
Is the ifstream open?
Reimplemented from carto::cuifstream.
|
virtual |
Return the state of both associated streams.
Reimplemented from carto::cuifstream.