mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-04 07:56:31 +08:00
37 lines
533 B
C++
37 lines
533 B
C++
#include "Print.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
bool
|
|
PrintState::started(PrintStep step) const
|
|
{
|
|
return this->_started.find(step) != this->_started.end();
|
|
}
|
|
|
|
bool
|
|
PrintState::done(PrintStep step) const
|
|
{
|
|
return this->_done.find(step) != this->_done.end();
|
|
}
|
|
|
|
void
|
|
PrintState::set_started(PrintStep step)
|
|
{
|
|
this->_started.insert(step);
|
|
}
|
|
|
|
void
|
|
PrintState::set_done(PrintStep step)
|
|
{
|
|
this->_done.insert(step);
|
|
}
|
|
|
|
void
|
|
PrintState::invalidate(PrintStep step)
|
|
{
|
|
this->_started.erase(step);
|
|
this->_done.erase(step);
|
|
}
|
|
|
|
}
|