OrcaSlicer latest
OrcaSlicer
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, bool is_dir=false)
void remove ()

Public Attributes

fs::path bundle
Version version
std::string vendor
bool is_directory {false}

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,
bool is_dir = false )
inline
180 : bundle(std::move(bundle))
182 , vendor(std::move(vendor))
183 , is_directory(is_dir)
184 {}
Version version
Definition PresetUpdater.cpp:174
std::string vendor
Definition PresetUpdater.cpp:175
fs::path bundle
Definition PresetUpdater.cpp:173
bool is_directory
Definition PresetUpdater.cpp:177

References bundle, is_directory, vendor, and version.

Referenced by operator<<.

Here is the caller graph for this function:

Member Function Documentation

◆ remove()

void Slic3r::Incompat::remove ( )
inline
186 {
187 // Remove the bundle file
188 if (is_directory) {
189 if (fs::exists(bundle))
190 fs::remove_all(bundle);
191 }
192 else {
193 if (fs::exists(bundle))
194 fs::remove(bundle);
195 }
196 }

References bundle, and is_directory.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Incompat & self )
friend
198 {
199 os << "Incompat(" << self.bundle.string() << ')';
200 return os;
201 }

References Incompat(), and bundle.

Member Data Documentation

◆ bundle

fs::path Slic3r::Incompat::bundle

Referenced by Incompat(), operator<<, and remove().

◆ is_directory

bool Slic3r::Incompat::is_directory {false}
177{false};

Referenced by Incompat(), and remove().

◆ vendor

std::string Slic3r::Incompat::vendor

Referenced by Incompat().

◆ version

Version Slic3r::Incompat::version

Referenced by Incompat().


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