Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Incompat Struct Reference
+ Collaboration diagram for Slic3r::Incompat:

Public Member Functions

 Incompat (fs::path &&bundle, const Version &version, std::string vendor)
 
void remove ()
 

Public Attributes

fs::path bundle
 
Version version
 
std::string vendor
 

Friends

std::ostream & operator<< (std::ostream &os, const Incompat &self)
 

Detailed Description

Constructor & Destructor Documentation

◆ Incompat()

Slic3r::Incompat::Incompat ( fs::path &&  bundle,
const Version version,
std::string  vendor 
)
inline
127 : bundle(std::move(bundle))
129 , vendor(std::move(vendor))
130 {}
Version version
Definition PresetUpdater.cpp:123
std::string vendor
Definition PresetUpdater.cpp:124
fs::path bundle
Definition PresetUpdater.cpp:122

Member Function Documentation

◆ remove()

void Slic3r::Incompat::remove ( )
inline
132 {
133 // Remove the bundle file
134 fs::remove(bundle);
135
136 // Look for an installed index and remove it too if any
137 const fs::path installed_idx = bundle.replace_extension("idx");
138 if (fs::exists(installed_idx)) {
139 fs::remove(installed_idx);
140 }
141 }

References bundle.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Incompat self 
)
friend
143 {
144 os << "Incompat(" << self.bundle.string() << ')';
145 return os;
146 }

Member Data Documentation

◆ bundle

fs::path Slic3r::Incompat::bundle

Referenced by remove().

◆ vendor

std::string Slic3r::Incompat::vendor

◆ version

Version Slic3r::Incompat::version

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