Error handling and more comments for Zipper.

This commit is contained in:
tamasmeszaros 2019-03-15 12:16:05 +01:00
parent 4643106be4
commit 4f1a10c0f8
4 changed files with 126 additions and 17 deletions

View file

@ -201,10 +201,10 @@ struct SLAPrintStatistics
}
};
struct SLAminzFmt {};
struct SLAminzZipper {};
// The implementation of creating zipped archives with wxWidgets
template<> class LayerWriter<SLAminzFmt> {
template<> class LayerWriter<SLAminzZipper> {
Zipper m_zip;
public:
@ -258,7 +258,7 @@ public:
// Returns true if the last step was finished with success.
bool finished() const override { return this->is_step_done(slaposIndexSlices) && this->Inherited::is_step_done(slapsRasterize); }
template<class Fmt = SLAminzFmt>
template<class Fmt = SLAminzZipper>
void export_raster(const std::string& fname) {
if(m_printer) m_printer->save<Fmt>(fname);
}