Classes | Public Member Functions

reuse::TarFile Class Reference

Collaboration diagram for reuse::TarFile:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 44 of file tarfile.h.


Member Function Documentation

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.


The documentation for this class was generated from the following files: