OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::anonymous_namespace{PluginManager.cpp} Namespace Reference

Functions

bool is_cloud_version_newer (const std::string &cloud_version, const std::string &local_version)

Variables

const char *const LOAD_CANCELLED = "__plugin_load_cancelled__"
const char *const CLOUD_PLUGIN_NOT_FOUND_ERROR = "Plugin was not found in the cloud."
PyObject * tl_script_loop = nullptr

Function Documentation

◆ is_cloud_version_newer()

bool Slic3r::anonymous_namespace{PluginManager.cpp}::is_cloud_version_newer ( const std::string & cloud_version,
const std::string & local_version )
1490{
1491 auto cloud_parsed = Semver::parse(cloud_version);
1492 auto local_parsed = Semver::parse(local_version);
1493 if (cloud_parsed && local_parsed)
1494 return *cloud_parsed > *local_parsed;
1495 // Fall back to string comparison if semver parsing fails for either version.
1496 return cloud_version != local_version;
1497}
static boost::optional< Semver > parse(const std::string &str)
Definition Semver.hpp:63

References is_cloud_version_newer(), and Slic3r::Semver::parse().

Referenced by is_cloud_version_newer().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CLOUD_PLUGIN_NOT_FOUND_ERROR

const char* const Slic3r::anonymous_namespace{PluginManager.cpp}::CLOUD_PLUGIN_NOT_FOUND_ERROR = "Plugin was not found in the cloud."

◆ LOAD_CANCELLED

const char* const Slic3r::anonymous_namespace{PluginManager.cpp}::LOAD_CANCELLED = "__plugin_load_cancelled__"

◆ tl_script_loop

PyObject* Slic3r::anonymous_namespace{PluginManager.cpp}::tl_script_loop = nullptr
thread_local