Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Member Functions | Protected Attributes | List of all members
igzstream Class Reference

#include <gzstream.h>

Inheritance diagram for igzstream:
gzstreambase JLANG::JGZFileReader< T >

Public Member Functions

 igzstream ()
 
 igzstream (const char *name, int open_mode=std::ios::in)
 
void open (const char *name, int open_mode=std::ios::in)
 
void close ()
 
gzstreambufrdbuf ()
 
bool is_open () const
 

Protected Attributes

gzstreambuf buf
 

Detailed Description

Definition at line 203 of file gzstream.h.

Constructor & Destructor Documentation

◆ igzstream() [1/2]

igzstream::igzstream ( )
inline

Definition at line 205 of file gzstream.h.

205 : std::istream( &buf) {}
gzstreambuf buf
Definition: gzstream.h:169

◆ igzstream() [2/2]

igzstream::igzstream ( const char *  name,
int  open_mode = std::ios::in 
)
inline

Definition at line 206 of file gzstream.h.

207  : gzstreambase( name, open_mode), std::istream( &buf) {}

Member Function Documentation

◆ open()

void igzstream::open ( const char *  name,
int  open_mode = std::ios::in 
)
inline

Definition at line 208 of file gzstream.h.

208  {
209  gzstreambase::open( name, open_mode);
210  }
void open(const char *name, int open_mode)
Definition: gzstream.h:180

◆ close()

void gzstreambase::close ( )
inlineinherited

Definition at line 185 of file gzstream.h.

185  {
186  if ( buf.is_open()) {
187  if ( ! buf.close())
188  clear( rdstate() | std::ios::badbit );
189  else
190  clear();
191  }
192  }
int is_open() const
Definition: gzstream.h:79
gzstreambuf * close()
Definition: gzstream.h:108

◆ rdbuf()

gzstreambuf* gzstreambase::rdbuf ( )
inlineinherited

Definition at line 193 of file gzstream.h.

193 { return &buf; }

◆ is_open()

bool gzstreambase::is_open ( ) const
inlineinherited

Definition at line 194 of file gzstream.h.

194 { return buf.is_open(); }

Member Data Documentation

◆ buf

gzstreambuf gzstreambase::buf
protectedinherited

Definition at line 169 of file gzstream.h.


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