NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Zipfile Class Reference

#include <zip++.hpp>

Collaboration diagram for Zipfile:

Public Member Functions

 Zipfile ()
 
 ~Zipfile ()
 
bool open (const std::string &sZipFilename, int nOpenmode=0)
 
bool is_open () const
 
bool close ()
 
bool addFile (const std::string &sFilename)
 
std::string getZipContent ()
 
std::string getZipItem (const std::string &sFilename)
 

Private Attributes

HZIP hZip
 
ZIPENTRY zEntry
 
bool bIsOpen
 

Detailed Description

Definition at line 34 of file zip++.hpp.

Constructor & Destructor Documentation

◆ Zipfile()

Zipfile::Zipfile ( )

Definition at line 23 of file zip++.cpp.

References bIsOpen, and hZip.

◆ ~Zipfile()

Zipfile::~Zipfile ( )

Definition at line 29 of file zip++.cpp.

References bIsOpen, CloseZip, and hZip.

Member Function Documentation

◆ addFile()

bool Zipfile::addFile ( const std::string &  sFilename)

Definition at line 70 of file zip++.cpp.

References bIsOpen, hZip, and ZipAdd().

Here is the call graph for this function:

◆ close()

bool Zipfile::close ( )

Definition at line 59 of file zip++.cpp.

References bIsOpen, CloseZip, and hZip.

Referenced by NumeRe::GenericFile::getZipFileItem().

◆ getZipContent()

std::string Zipfile::getZipContent ( )

Definition at line 79 of file zip++.cpp.

References bIsOpen, GetZipItem(), hZip, ZIPENTRY::unc_size, UnzipItem(), zEntry, ZR_MORE, and ZR_OK.

Here is the call graph for this function:

◆ getZipItem()

std::string Zipfile::getZipItem ( const std::string &  sFilename)

Definition at line 106 of file zip++.cpp.

References bIsOpen, FindZipItem(), hZip, ZIPENTRY::unc_size, UnzipItem(), zEntry, and ZR_OK.

Referenced by NumeRe::GenericFile::getZipFileItem().

Here is the call graph for this function:

◆ is_open()

bool Zipfile::is_open ( ) const
inline

Definition at line 45 of file zip++.hpp.

References bIsOpen.

◆ open()

bool Zipfile::open ( const std::string &  sZipFilename,
int  nOpenmode = 0 
)

Definition at line 38 of file zip++.cpp.

References bIsOpen, CloseZip, CreateZip(), hZip, and OpenZip().

Referenced by NumeRe::GenericFile::getZipFileItem().

Here is the call graph for this function:

Member Data Documentation

◆ bIsOpen

bool Zipfile::bIsOpen
private

Definition at line 39 of file zip++.hpp.

Referenced by addFile(), close(), getZipContent(), getZipItem(), is_open(), open(), Zipfile(), and ~Zipfile().

◆ hZip

HZIP Zipfile::hZip
private

Definition at line 37 of file zip++.hpp.

Referenced by addFile(), close(), getZipContent(), getZipItem(), open(), Zipfile(), and ~Zipfile().

◆ zEntry

ZIPENTRY Zipfile::zEntry
private

Definition at line 38 of file zip++.hpp.

Referenced by getZipContent(), and getZipItem().


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