mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-30 23:48:44 +03:00
update src and test
This commit is contained in:
29
src/CLI/ProfilesSharingUtils.hpp
Normal file
29
src/CLI/ProfilesSharingUtils.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef slic3r_ProfilesSharingUtils_hpp_
|
||||
#define slic3r_ProfilesSharingUtils_hpp_
|
||||
|
||||
#include <string>
|
||||
#include "libslic3r/Config.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
std::string get_json_printer_models(PrinterTechnology printer_technology);
|
||||
//std::string get_json_printer_profiles(const std::string& printer_model, const std::string& printer_variant);
|
||||
std::string get_json_print_filament_profiles(const std::string& printer_profile);
|
||||
|
||||
class DynamicPrintConfig;
|
||||
bool load_full_print_config(const std::string& print_preset, const std::string& filament_preset, const std::string& printer_preset, DynamicPrintConfig& out_config);
|
||||
|
||||
// Load full print config into config
|
||||
// Return value is always error string if any exists
|
||||
// Note, that all appearing warnings are added into BOOST_LOG
|
||||
// When printer_technology is set, then it will be compared with printer technology of the printer_profile and return the error, when they aren't the same
|
||||
std::string load_full_print_config( const std::string& print_preset_name,
|
||||
const std::vector<std::string>& material_preset_names,
|
||||
const std::string& printer_preset_name,
|
||||
DynamicPrintConfig& config,
|
||||
PrinterTechnology printer_technology = ptUnknown);
|
||||
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif // slic3r_ProfilesSharingUtils_hpp_
|
||||
Reference in New Issue
Block a user