Eclipse SUMO - Simulation of Urban MObility
zstr::ifstream Class Reference

#include <zstr.hpp>

Inheritance diagram for zstr::ifstream:
[legend]
Collaboration diagram for zstr::ifstream:
[legend]

Public Member Functions

void close ()
 
std::streampos compressed_tellg ()
 Return the position within the compressed file (wrapped filestream) More...
 
 ifstream ()
 
 ifstream (const std::string filename, std::ios_base::openmode mode=std::ios_base::in, size_t buff_size=default_buff_size)
 
bool is_open () const
 
void open (const std::string filename, std::ios_base::openmode mode=std::ios_base::in)
 
virtual ~ifstream ()
 

Private Attributes

strict_fstream::ifstream _fs
 

Detailed Description

Definition at line 419 of file zstr.hpp.

Constructor & Destructor Documentation

◆ ifstream() [1/2]

zstr::ifstream::ifstream ( const std::string  filename,
std::ios_base::openmode  mode = std::ios_base::in,
size_t  buff_size = default_buff_size 
)
inlineexplicit

Definition at line 424 of file zstr.hpp.

◆ ifstream() [2/2]

zstr::ifstream::ifstream ( )
inlineexplicit

Definition at line 430 of file zstr.hpp.

◆ ~ifstream()

virtual zstr::ifstream::~ifstream ( )
inlinevirtual

Member Function Documentation

◆ close()

void zstr::ifstream::close ( )
inline

Definition at line 431 of file zstr.hpp.

References zstr::detail::strict_fstream_holder< strict_fstream::ifstream >::_fs.

Referenced by ~ifstream().

Here is the caller graph for this function:

◆ compressed_tellg()

std::streampos zstr::ifstream::compressed_tellg ( )
inline

Return the position within the compressed file (wrapped filestream)

Definition at line 450 of file zstr.hpp.

References zstr::detail::strict_fstream_holder< strict_fstream::ifstream >::_fs.

◆ is_open()

bool zstr::ifstream::is_open ( ) const
inline

◆ open()

void zstr::ifstream::open ( const std::string  filename,
std::ios_base::openmode  mode = std::ios_base::in 
)
inline

Field Documentation

◆ _fs


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