27 #ifndef INCLUDED_ARCHIVE
28 #define INCLUDED_ARCHIVE
109 #endif // #ifndef INCLUDED_ARCHIVE
void(* ArchiveEntryCallback)(const VfsPath &pathname, const CFileInfo &fileInfo, PIArchiveFile archiveFile, uintptr_t cbData)
called for each archive entry.
virtual Status ReadEntries(ArchiveEntryCallback cb, uintptr_t cbData)=0
const Status ARCHIVE_UNKNOWN_FORMAT
shared_ptr< IArchiveWriter > PIArchiveWriter
const Status ARCHIVE_UNKNOWN_METHOD
virtual ~IArchiveWriter()
write out the archive to disk; only hereafter is it valid.
shared_ptr< IArchiveReader > PIArchiveReader
i64 Status
Error handling system.
virtual Status AddMemory(const u8 *data, size_t size, time_t mtime, const OsPath &pathnameInArchive)=0
add a file to the archive, when it is already in memory and not on disk.
shared_ptr< IArchiveFile > PIArchiveFile
virtual ~IArchiveReader()
virtual Status AddFile(const OsPath &pathname, const Path &pathnameInArchive)=0
add a file to the archive.