PrusaSlicer-NonPlainar/src/libslic3r/Format/ZipperArchiveImport.hpp

34 lines
771 B
C++
Raw Normal View History

2022-04-20 15:28:14 +00:00
#ifndef ZIPPERARCHIVEIMPORT_HPP
#define ZIPPERARCHIVEIMPORT_HPP
#include <vector>
#include <string>
#include <cstdint>
#include <boost/property_tree/ptree.hpp>
namespace Slic3r {
struct EntryBuffer
{
std::vector<uint8_t> buf;
std::string fname;
};
struct ZipperArchive
{
boost::property_tree::ptree profile, config;
std::vector<EntryBuffer> entries;
};
const constexpr char *CONFIG_FNAME = "config.ini";
const constexpr char *PROFILE_FNAME = "prusaslicer.ini";
2022-04-20 15:28:14 +00:00
ZipperArchive read_zipper_archive(const std::string &zipfname,
const std::vector<std::string> &includes,
const std::vector<std::string> &excludes);
} // namespace Slic3r
#endif // ZIPPERARCHIVEIMPORT_HPP