Improved logging of SLA support tree creation.

This commit is contained in:
tamasmeszaros 2019-07-30 17:55:22 +02:00
parent 57008d0d77
commit ca1f3dc6af
2 changed files with 23 additions and 10 deletions

View file

@ -447,16 +447,21 @@ private:
// Estimated print time, material consumed.
SLAPrintStatistics m_print_statistics;
class StatusReporter {
class StatusReporter
{
double m_st = 0;
public:
void operator() (SLAPrint& p, double st, const std::string& msg,
unsigned flags = SlicingStatus::DEFAULT);
void operator()(SLAPrint & p,
double st,
const std::string &msg,
unsigned flags = SlicingStatus::DEFAULT,
const std::string &logmsg = "");
double status() const { return m_st; }
} m_report_status;
friend SLAPrintObject;
};