class axl::zip::ZipReader

#include <axl_zip_ZipReader.h>

class ZipReader
{
public:
    // construction

    ZipReader();
    ~ZipReader();

    // methods

    bool
    isOpen();

    void
    close();

    bool
    openFile(const sl::StringRef& fileName);

    bool
    openMem(
        const void* p,
        size_t size
        );

    size_t
    getFileCount();

    sl::String
    getFileName(size_t index);

    bool
    getFileInfo(
        size_t index,
        ZipFileInfo* fileInfo,
        sl::String* comment = NULL
        );

    bool
    isDirectoryFile(size_t index);

    bool
    isFileEncrypted(size_t index);

    bool
    extractFileToMem(
        size_t index,
        void* p,
        size_t size
        );

    bool
    extractFileToMem(
        size_t index,
        sl::Array<char>* buffer
        );

    sl::Array<char>
    extractFileToMem(size_t index);

    bool
    extractFileToFile(
        size_t index,
        const sl::StringRef& fileName
        );
};