List of all members
mootio::mizfstream Class Reference

Wrapper class for named file input using gzFile. More...

Inheritance diagram for mootio::mizfstream:
Inheritance graph
[legend]
Collaboration diagram for mootio::mizfstream:
Collaboration graph
[legend]

Public Member Functions

Constructors etc.
 mizfstream (void)
 
 mizfstream (const char *filename, const char *mode=__null)
 
 mizfstream (const std::string &filename, const std::string &mode="")
 
virtual ~mizfstream (void)
 
- Public Member Functions inherited from mootio::mzfstream
 mzfstream (void)
 
 mzfstream (const char *filename, const char *open_mode=__null)
 
virtual ~mzfstream (void)
 
bool open (const char *filename, const char *open_mode=__null)
 
bool open (const std::string &filename, const std::string &open_mode="")
 
virtual bool reopen (void)
 
virtual bool close (void)
 
void setparams (int level=(-1), int strategy=0)
 
- Public Member Functions inherited from mootio::mzstream
 mzstream (gzFile zf=__null)
 
 ~mzstream (void)
 
virtual bool valid (void)
 
virtual bool eof (void)
 
virtual std::string errmsg (void)
 
virtual ByteCount read (char *buf, size_t n)
 
virtual int getbyte (void)
 
virtual bool flush (void)
 
virtual bool write (const char *buf, size_t n)
 
virtual bool putbyte (unsigned char c)
 
virtual bool puts (const char *s)
 
virtual bool puts (const std::string &s)
 
- Public Member Functions inherited from mootio::mistream
 mistream (void)
 
virtual ~mistream (void)
 
virtual ByteCount getline (std::string &s, const std::string &delim="\")
 
- Public Member Functions inherited from mootio::mstream
 mstream (const std::string &myname="")
 
virtual ~mstream (void)
 
 operator bool (void)
 
- Public Member Functions inherited from mootio::mostream
 mostream (void)
 
virtual ~mostream (void)
 
virtual bool vprintf (const char *fmt, va_list &ap)
 
bool printf (const char *fmt,...)
 

Additional Inherited Members

- Public Attributes inherited from mootio::mzfstream
std::string mode
 open mode More...
 
std::string default_mode
 default open mode More...
 
- Public Attributes inherited from mootio::mzstream
gzFile zfile
 underlying gzFile More...
 
- Public Attributes inherited from mootio::mstream
std::string name
 symbolic name of this stream More...
 

Detailed Description

Uses mstream::name as filename identifier. The name "-" corresponds to stdin. Default open-mode is "rb".

Constructor & Destructor Documentation

◆ mizfstream() [1/3]

mootio::mizfstream::mizfstream ( void  )
inline

Default constructor as for mcstream

◆ mizfstream() [2/3]

mootio::mizfstream::mizfstream ( const char *  filename,
const char *  mode = __null 
)
inline

Constructor given filename and mode

◆ mizfstream() [3/3]

mootio::mizfstream::mizfstream ( const std::string &  filename,
const std::string &  mode = "" 
)
inline

Constructor given filename and mode as C++ strings

◆ ~mizfstream()

virtual mootio::mizfstream::~mizfstream ( void  )
inlinevirtual

Destructor: auto-closes file

References mootio::mzstream::close().


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