mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 16:38:43 +03:00
QIDISlicer1.0.0
This commit is contained in:
18
src/libslic3r/Format/SLAArchiveWriter.cpp
Normal file
18
src/libslic3r/Format/SLAArchiveWriter.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "SLAArchiveWriter.hpp"
|
||||
#include "SLAArchiveFormatRegistry.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
std::unique_ptr<SLAArchiveWriter>
|
||||
SLAArchiveWriter::create(const std::string &archtype, const SLAPrinterConfig &cfg)
|
||||
{
|
||||
std::unique_ptr<SLAArchiveWriter> ret;
|
||||
auto factory = get_writer_factory(archtype.c_str());
|
||||
|
||||
if (factory)
|
||||
ret = factory(cfg);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace Slic3r
|
||||
Reference in New Issue
Block a user