#include <GTarFile.h>
Classes | |
| struct | GTarFile |
| struct | GTarHdr |
| The actual file format. More... | |
Public Member Functions | |
| bool | DirList (char *File, GArray< GTarFile > &Out) |
| Get a directory listing of the tar file. | |
| bool | Extract (char *File, char *OutFolder) |
| Extract all the tar file contents to a folder. | |
Protected Member Functions | |
| int64 | Octal (char *o) |
| Convert octal number to decimal. | |
| virtual bool | Process (GTarFile &f, GStream &s, bool &SkipFile) |
| bool | Parse (char *FileName, int Mode) |
| Main parsing loop. | |
Protected Attributes | |
| Zlib | z |
| The compression lib. | |
| GZlibFile | f |
| The stream wrapper around the lib. | |
| GArray< GTarFile > * | Files |
| If this is set, output files to array. | |
| char * | ExtractTo |
| If this is set, then extract the files to this folder. | |
| virtual bool GTarParser::Process | ( | GTarFile & | f, | |
| GStream & | s, | |||
| bool & | SkipFile | |||
| ) | [inline, protected, virtual] |
Called every time a file is parsed
References GTarParser::GTarFile::Blocks(), GTarParser::GTarFile::Dir, ExtractTo, Files, GTarParser::GTarFile::Name, GStream::Read(), GTarParser::GTarFile::Size, and GVariant::Str().
Referenced by Parse().
1.5.7.1