2013-12-20 00:36:42 +00:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2014-01-02 21:06:58 +00:00
|
|
|
void
|
|
|
|
PrintState::invalidate_all()
|
|
|
|
{
|
|
|
|
this->_started.clear();
|
|
|
|
this->_done.clear();
|
|
|
|
}
|
|
|
|
|
2013-12-20 00:36:42 +00:00
|
|
|
}
|