#include <ZipFile.hpp>
Public Member Functions | |
void | addDirectory (const openstudio::path &localDir, const openstudio::path &destinationDir) |
Recursively adds all files in localDir to the ZipFile, placing them in the archive relative to destinationDir. More... | |
void | addFile (const openstudio::path &localPath, const openstudio::path &destinationPath) |
Adds localPath to the ZipFile, placing it at relative location destinationPath in the archive. More... | |
ZipFile (const openstudio::path &filename, bool add) | |
Constructs a ZipFile object, opening the given file name. More... | |
~ZipFile () | |
openstudio::ZipFile::ZipFile | ( | const openstudio::path & | filename, |
bool | add | ||
) |
Constructs a ZipFile object, opening the given file name.
Throws if file could not be opened
[in] | filename | filename to open |
[in] | add | If true, add new files to existing archive, if false, overwrite existing archive |
openstudio::ZipFile::~ZipFile | ( | ) |
void openstudio::ZipFile::addDirectory | ( | const openstudio::path & | localDir, |
const openstudio::path & | destinationDir | ||
) |
Recursively adds all files in localDir to the ZipFile, placing them in the archive relative to destinationDir.
void openstudio::ZipFile::addFile | ( | const openstudio::path & | localPath, |
const openstudio::path & | destinationPath | ||
) |
Adds localPath to the ZipFile, placing it at relative location destinationPath in the archive.