|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Namespace for compressing and decompressing zip. More...
Classes | |
| class | Exception |
| Class for zip exceptions. More... | |
Typedefs | |
| using | StringString = std::pair< std::string, std::string > |
| A pair of strings. More... | |
Compression and Decompression | |
| std::string | compress (const std::vector< StringString > &fileContents) |
| Compresses files using zip. More... | |
| std::vector< StringString > | decompress (const std::string &compressed) |
| Decompresses zip-compressed content. More... | |
Namespace for compressing and decompressing zip.
| using crawlservpp::Data::Compression::Zip::StringString = typedef std::pair<std::string, std::string> |
A pair of strings.
|
inline |
Compresses files using zip.
| fileContents | A const reference to a vector containing pairs of strings containing the file names and contents of all the files to be compressed. |
| Zip::Exception | if the libzip library generates an error. |
References crawlservpp::Wrapper::ZipArchive::addFile(), crawlservpp::Wrapper::ZipArchive::close(), crawlservpp::Wrapper::ZipArchive::getError(), and crawlservpp::Wrapper::ZipArchive::valid().
Referenced by crawlservpp::Data::ImportExport::OpenDocument::exportSpreadsheet(), and crawlservpp::Main::Server::tick().
|
inline |
Decompresses zip-compressed content.
| compressed | A const reference to the zip-compressed content to be decompressed. |
| Zip::Exception | if the libzip library generates an error. |