NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
archive.cpp File Reference
#include "archive.hpp"
#include "stringtools.hpp"
#include "../io/logger.hpp"
#include <wx/zipstrm.h>
#include <wx/tarstrm.h>
#include <wx/zstream.h>
#include <wx/wfstream.h>
#include <wx/stream.h>
#include <wx/dir.h>
#include <fstream>
#include <cstring>
#include <memory>
#include "../../kernel.hpp"
Include dependency graph for archive.cpp:

Go to the source code of this file.

Namespaces

namespace  Archive
 

Functions

Type Archive::detectType (const std::string &sArchiveFileName)
 Detects the type of the archive based upon the magic numbers in their header sections or upon the file names extension, if the file does not yet exist. More...
 
static std::string Archive::getGZipFileName (const std::string &sArchiveFileName)
 Static helper function to read a possible available file name in the GZIP header section. More...
 
void Archive::pack (const std::vector< std::string > &vFileList, const std::string &sTargetFile, Type type)
 Pack a set of files or folders into an archive file type with the specified file name. If the type of the archive is not specified then its automatically detected based upon the file extension or from an already existing file at the specified location. More...
 
std::vector< std::string > Archive::unpack (const std::string &sArchiveName, const std::string &sTargetPath)
 Unpacks an archive file format into its folder structure at the specified location. The archive file type is detected automatically. If no target is specified then only the names of the contained files are returned. More...