29#include <sptk5/ArchiveFile.h>
30#include <sptk5/Buffer.h>
31#include <sptk5/Exception.h>
32#include <sptk5/Strings.h>
33#include <sptk5/sptk.h>
45 using FileCollection = std::map<String, SArchiveFile>;
73 read(fileName.c_str());
82 void read(
const char* fileName);
98 for (
const auto& [fileName, data]: m_files)
136 FileCollection m_files;
139 [[nodiscard]]
bool readNextFile(
const Buffer& buffer,
size_t& offset);
File inside tar archive.
Definition: ArchiveFile.h:69
void push_back(const String &str)
Definition: Strings.h:237
Strings fileList() const
Definition: Tar.h:95
const ArchiveFile & file(const String &fileName) const
void read(const Buffer &tarData)
void remove(const String &filename)
void save(const String &tarFileName) const
Tar(const String &tarFileName)
void read(const char *fileName)
void append(const SArchiveFile &file)
void read(const String &fileName)
Definition: Tar.h:71
Tar(const Buffer &tarData)