|
| | Update () |
| | Update (fs::path &&source, fs::path &&target, const Version &version, std::string vendor, std::string changelog, std::string description, bool forced=false, bool is_dir=false) |
| | Update (fs::path &&source, fs::path &&target, const Version &version, std::string vendor, std::string changelog, std::string description, std::function< bool(const std::string)> file_filter, bool forced=false, bool is_dir=false) |
| void | install () const |
◆ Update() [1/3]
| Slic3r::Update::Update |
( |
| ) |
|
|
inline |
◆ Update() [2/3]
| Slic3r::Update::Update |
( |
fs::path && | source, |
|
|
fs::path && | target, |
|
|
const Version & | version, |
|
|
std::string | vendor, |
|
|
std::string | changelog, |
|
|
std::string | description, |
|
|
bool | forced = false, |
|
|
bool | is_dir = false ) |
|
inline |
128 {}
bool forced_update
Definition PresetUpdater.cpp:110
fs::path source
Definition PresetUpdater.cpp:99
fs::path target
Definition PresetUpdater.cpp:100
std::string change_log
Definition PresetUpdater.cpp:105
std::string vendor
Definition PresetUpdater.cpp:103
bool is_directory
Definition PresetUpdater.cpp:112
Version version
Definition PresetUpdater.cpp:102
std::string descriptions
Definition PresetUpdater.cpp:106
References change_log, descriptions, forced_update, is_directory, source, target, vendor, and version.
◆ Update() [3/3]
| Slic3r::Update::Update |
( |
fs::path && | source, |
|
|
fs::path && | target, |
|
|
const Version & | version, |
|
|
std::string | vendor, |
|
|
std::string | changelog, |
|
|
std::string | description, |
|
|
std::function< bool(const std::string)> | file_filter, |
|
|
bool | forced = false, |
|
|
bool | is_dir = false ) |
|
inline |
◆ install()
| void Slic3r::Update::install |
( |
| ) |
const |
|
inline |
144 {
147 } else {
149
150
151
152 boost::system::error_code ec;
154 fs::remove(
target.parent_path() / (
vendor +
".json"), ec);
155 ec.clear();
157 }
158 else {
159 fs::remove(
target.parent_path() / (
vendor +
".opc"), ec);
160 }
161 }
162 }
void copy_directory_recursively(const boost::filesystem::path &source, const boost::filesystem::path &target, std::function< bool(const std::string)> filter, bool merge_mode)
Definition utils.cpp:1924
void copy_file_fix(const fs::path &source, const fs::path &target)
Definition PresetUpdater.cpp:79
bool is_opc
Definition PresetUpdater.cpp:114
References Slic3r::copy_directory_recursively(), Slic3r::copy_file_fix(), file_filter, is_directory, is_opc, source, target, and vendor.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Update & | self ) |
|
friend |
165 {
166 os << "Update(" << self.source.string() << " -> " << self.target.string() << ')';
167 return os;
168 }
References Update(), source, and target.
◆ change_log
| std::string Slic3r::Update::change_log |
◆ descriptions
| std::string Slic3r::Update::descriptions |
◆ file_filter
| std::function<bool(const std::string)> Slic3r::Update::file_filter |
◆ forced_update
| bool Slic3r::Update::forced_update |
◆ is_directory
| bool Slic3r::Update::is_directory {false} |
◆ is_opc
| bool Slic3r::Update::is_opc {false} |
◆ source
| fs::path Slic3r::Update::source |
◆ target
| fs::path Slic3r::Update::target |
◆ vendor
| std::string Slic3r::Update::vendor |
◆ version
The documentation for this struct was generated from the following file: