MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / UnzipFile

Method UnzipFile

src/utilities/core/UnzipFile.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace openstudio {
10
11UnzipFile::UnzipFile(const openstudio::path& filename) : m_unzFile(unzOpen(openstudio::toString(filename).c_str())), m_chunksize(32768) {
12 if (!m_unzFile) {
13 if (!openstudio::filesystem::exists(filename)) {
14 throw std::runtime_error("UnzipFile " + openstudio::toString(filename) + " does not exist, could not be opened");
15 } else {
16 throw std::runtime_error("UnzipFile " + openstudio::toString(filename) + " exists, could not be opened");
17 }
18 }
19}
20
21UnzipFile::~UnzipFile() {
22 unzClose(m_unzFile);

Callers

nothing calls this directly

Calls 1

toStringFunction · 0.70

Tested by

no test coverage detected