8 #ifndef __VRV_FILEREADER_H__
9 #define __VRV_FILEREADER_H__
28 const unsigned char *source,
size_t sourceLength,
unsigned char *destination,
size_t destinationLength);
55 bool Load(
const std::string &filename);
60 bool LoadBytes(
const std::vector<unsigned char> &bytes);
65 bool HasFile(
const std::string &filename);
84 miniz_cpp::zip_file *m_file;
This class is a reader for zip archives.
Definition: filereader.h:37
bool Load(const std::string &filename)
Load a file into memory.
std::string ReadTextFile(const std::string &filename)
Read the text file.
bool HasFile(const std::string &filename)
Check if the archive contains the file.
void Reset()
Reset a previously loaded file.
std::list< std::string > GetFileList() const
Return a list of all files (including directories)
bool LoadBytes(const std::vector< unsigned char > &bytes)
Load a vector into memory.
Forward declaration of the zip_file.hpp class.
Definition: filereader.h:18