|
#include <Tar.h>
Public Member Functions | |
| Tar ()=default | |
| Tar (const Buffer &tarData) | |
| Tar (const String &tarFileName) | |
| void | read (const String &fileName) |
| void | read (const char *fileName) |
| void | read (const Buffer &tarData) |
| Strings | fileList () const |
| const ArchiveFile & | file (const String &fileName) const |
| void | remove (const String &filename) |
| void | append (const SArchiveFile &file) |
| void | save (const String &tarFileName) const |
| void | clear () |
Tar archive
Allows reading tar archive files into memory buffers. The main usage currently is to read an SPTK theme from tar-archive.
|
default |
Constructor
| void sptk::Tar::append | ( | const SArchiveFile & | file | ) |
Add file data
| fileName | Archive file |
| void sptk::Tar::clear | ( | ) |
Clears the allocated memory
| const ArchiveFile & sptk::Tar::file | ( | const String & | fileName | ) | const |
Return file data by file name
| fileName | File name |
|
inline |
returns a list of files in tar archive
References sptk::Strings::push_back().
| void sptk::Tar::read | ( | const Buffer & | tarData | ) |
Reads tar archive from buffer
The archive content is red into the internal set of buffers
| tarData | Tar file buffer |
| void sptk::Tar::read | ( | const char * | fileName | ) |
Reads tar archive from file
The archive content is red into the internal set of buffers
| fileName | File name to open |
|
inline |
Reads tar archive from file
The archive content is red into the internal set of buffers
| fileName | File name to open |
| void sptk::Tar::remove | ( | const String & | filename | ) |
Remove file data
| fileName | Archive file |
| void sptk::Tar::save | ( | const String & | tarFileName | ) | const |
Save tar archive to file
| tarFileName | Tar file name |