OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::PluginCapabilityId Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/plugin/PythonPluginInterface.hpp>

Collaboration diagram for Slic3r::PluginCapabilityId:

Public Member Functions

bool empty () const

Public Attributes

PluginCapabilityType type = PluginCapabilityType::Unknown
std::string name
std::string plugin_key

Friends

bool operator== (const PluginCapabilityId &lhs, const PluginCapabilityId &rhs)
bool operator< (const PluginCapabilityId &lhs, const PluginCapabilityId &rhs)

Detailed Description

Member Function Documentation

◆ empty()

bool Slic3r::PluginCapabilityId::empty ( ) const
inline
25{ return type == PluginCapabilityType::Unknown || name.empty() || plugin_key.empty(); }
@ Unknown
Definition PythonPluginInterface.hpp:17
std::string plugin_key
Definition PythonPluginInterface.hpp:23
PluginCapabilityType type
Definition PythonPluginInterface.hpp:21
std::string name
Definition PythonPluginInterface.hpp:22

References name, plugin_key, type, and Slic3r::Unknown.

Referenced by Slic3r::PluginConfig::save_config(), and Slic3r::CapabilityConfigDocument::upsert().

Here is the caller graph for this function:

◆ operator<

bool operator< ( const PluginCapabilityId & lhs,
const PluginCapabilityId & rhs )
friend
31 {
32 if (lhs.plugin_key != rhs.plugin_key)
33 return lhs.plugin_key < rhs.plugin_key;
34 if (lhs.name != rhs.name)
35 return lhs.name < rhs.name;
36 return lhs.type < rhs.type;
37 }

References name, plugin_key, and type.

◆ operator==

bool operator== ( const PluginCapabilityId & lhs,
const PluginCapabilityId & rhs )
friend
27 {
28 return lhs.type == rhs.type && lhs.name == rhs.name && lhs.plugin_key == rhs.plugin_key;
29 }

References name, plugin_key, and type.

Member Data Documentation

◆ name

◆ plugin_key

◆ type


The documentation for this struct was generated from the following file: