Classes | |
class | TarError |
Public Member Functions | |
bool | AppendFile (const char *tarpath, const std::string &data) |
Appends a new file to the current tarfile, using tarpath as its internal filename, and data as the complete file contents. | |
bool | ReadNextFile (std::string &tarpath, std::string &data) |
Reads next available file into data, filling tarpath with internal filename from tarball. | |
bool | ReadNextFilenameOnly (std::string &tarpath) |
Read next available filename, skipping the data if it is a regular file. |
Definition at line 44 of file tarfile.h.
bool reuse::TarFile::AppendFile | ( | const char * | tarpath, | |
const std::string & | data | |||
) |
Appends a new file to the current tarfile, using tarpath as its internal filename, and data as the complete file contents.
Uses current date and time as file mtime.
Definition at line 101 of file tarfile.cc.
bool reuse::TarFile::ReadNextFile | ( | std::string & | tarpath, | |
std::string & | data | |||
) |
Reads next available file into data, filling tarpath with internal filename from tarball.
Returns false on end of archive.
Definition at line 136 of file tarfile.cc.
bool reuse::TarFile::ReadNextFilenameOnly | ( | std::string & | tarpath | ) |
Read next available filename, skipping the data if it is a regular file.
Definition at line 253 of file tarfile.cc.