#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_App.hpp>
◆ VersionInfo()
| Slic3r::GUI::VersionInfo::VersionInfo |
( |
| ) |
|
|
inline |
195 {
198 }
201 }
#define VERSION_LEN
Definition GUI_App.hpp:185
bool force_upgrade
Definition GUI_App.hpp:193
std::string version_str
Definition GUI_App.hpp:189
int ver_items[VERSION_LEN]
Definition GUI_App.hpp:194
References force_upgrade, ver_items, VERSION_LEN, and version_str.
◆ compare()
| int Slic3r::GUI::VersionInfo::compare |
( |
std::string | ver_str | ) |
|
|
inline |
225 {
227
229 std::vector<std::string> items;
230 boost::split(items, ver_str, boost::is_any_of("."));
232 try {
234 ver_target[i] = stoi(items[i]);
236 return 1;
237 }
238 else if (ver_target[i] ==
ver_items[i]) {
239 continue;
240 }
241 else {
242 return -1;
243 }
244 }
245 }
246 catch (...) {
247 return -1;
248 }
249 }
250 return -1;
251 }
References ver_items, VERSION_LEN, and version_str.
◆ convert_full_version()
| std::string Slic3r::GUI::VersionInfo::convert_full_version |
( |
std::string | short_version | ) |
|
|
static |
◆ convert_short_version()
| std::string Slic3r::GUI::VersionInfo::convert_short_version |
( |
std::string | full_version | ) |
|
|
static |
415{
416 full_version.erase(std::remove(full_version.begin(), full_version.end(), '0'), full_version.end());
417 return full_version;
418}
◆ get_full_version()
| std::string Slic3r::GUI::VersionInfo::get_full_version |
( |
| ) |
|
|
inlinestatic |
220 {
222 }
static std::string convert_full_version(std::string short_version)
Definition GUI_App.cpp:396
References convert_full_version().
◆ parse_version_str()
| void Slic3r::GUI::VersionInfo::parse_version_str |
( |
std::string | str | ) |
|
|
inline |
203 {
205 std::vector<std::string> items;
206 boost::split(items, str, boost::is_any_of("."));
208 try {
211 }
212 }
213 catch (...) {
214 ;
215 }
216 }
217 }
References ver_items, VERSION_LEN, and version_str.
◆ description
| std::string Slic3r::GUI::VersionInfo::description |
◆ force_upgrade
| bool Slic3r::GUI::VersionInfo::force_upgrade { false } |
◆ url
| std::string Slic3r::GUI::VersionInfo::url |
◆ ver_items
◆ version_name
| std::string Slic3r::GUI::VersionInfo::version_name |
◆ version_str
| std::string Slic3r::GUI::VersionInfo::version_str |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_App.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_App.cpp