libdigidocpp
digidoc::ZipSerializePrivate Class Reference
Collaboration diagram for digidoc::ZipSerializePrivate:
Collaboration graph

Classes

struct  FileEntry

Public Member Functions

 ZipSerializePrivate ()
void extractCurrentFile (unzFile zipFile, const std::string &directory) throw (IOException)

Public Attributes

std::vector< FileEntryfilesAdded
zlib_filefunc_def pzlib_filefunc

Detailed Description

Definition at line 35 of file ZipSerialize.cpp.

Constructor & Destructor Documentation

digidoc::ZipSerializePrivate::ZipSerializePrivate ( )
inline

Definition at line 38 of file ZipSerialize.cpp.

References fill_fopen_filefunc(), fill_win32_filefunc(), and pzlib_filefunc.

Here is the call graph for this function:

Member Function Documentation

void digidoc::ZipSerializePrivate::extractCurrentFile ( unzFile  zipFile,
const std::string &  directory 
) throw (IOException)

Extracts current file from ZIP file to directory pointed in directory parameter.

Parameters
zipFilepointer to opened ZIP file.
directorydirectory where current file from ZIP should be extracted.
Exceptions
IOExceptionthrows exception if the extraction of the current file fails from ZIP file or creating new file to disk failed.

Definition at line 154 of file ZipSerialize.cpp.

References digidoc::util::File::createDirectory(), DEBUG, digidoc::util::File::directory(), digidoc::util::File::fopen(), digidoc::util::File::path(), THROW_IOEXCEPTION, UNZ_EOF, UNZ_OK, unzCloseCurrentFile(), unzGetCurrentFileInfo(), unzOpenCurrentFile(), and unzReadCurrentFile().

Here is the call graph for this function:

Member Data Documentation

std::vector<FileEntry> digidoc::ZipSerializePrivate::filesAdded

Definition at line 50 of file ZipSerialize.cpp.

zlib_filefunc_def digidoc::ZipSerializePrivate::pzlib_filefunc

Definition at line 52 of file ZipSerialize.cpp.

Referenced by ZipSerializePrivate().


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