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

Public Member Functions

 Update ()
 
 Update (fs::path &&source, fs::path &&target, const Version &version, std::string vendor, std::string changelog_url, bool forced=false)
 
void install () const
 

Public Attributes

fs::path source
 
fs::path target
 
Version version
 
std::string vendor
 
std::string changelog_url
 
bool forced_update
 

Friends

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

Detailed Description

Constructor & Destructor Documentation

◆ Update() [1/2]

Slic3r::Update::Update ( )
inline
98{}

◆ Update() [2/2]

Slic3r::Update::Update ( fs::path &&  source,
fs::path &&  target,
const Version version,
std::string  vendor,
std::string  changelog_url,
bool  forced = false 
)
inline
100 : source(std::move(source))
101 , target(std::move(target))
103 , vendor(std::move(vendor))
104 , changelog_url(std::move(changelog_url))
105 , forced_update(forced)
106 {}
std::string changelog_url
Definition PresetUpdater.cpp:94
bool forced_update
Definition PresetUpdater.cpp:96
fs::path source
Definition PresetUpdater.cpp:89
fs::path target
Definition PresetUpdater.cpp:90
std::string vendor
Definition PresetUpdater.cpp:93
Version version
Definition PresetUpdater.cpp:92

Member Function Documentation

◆ install()

void Slic3r::Update::install ( ) const
inline
109 {
111 }
void copy_file_fix(const fs::path &source, const fs::path &target)
Definition PresetUpdater.cpp:56

References source, and target.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Update self 
)
friend
114 {
115 os << "Update(" << self.source.string() << " -> " << self.target.string() << ')';
116 return os;
117 }

Member Data Documentation

◆ changelog_url

std::string Slic3r::Update::changelog_url

◆ forced_update

bool Slic3r::Update::forced_update

◆ source

fs::path Slic3r::Update::source

Referenced by install().

◆ target

fs::path Slic3r::Update::target

Referenced by install().

◆ vendor

std::string Slic3r::Update::vendor

◆ version

Version Slic3r::Update::version

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