28 #ifndef RTABMAP_RECOVERYSTATE_H_ 29 #define RTABMAP_RECOVERYSTATE_H_ 35 #include <QApplication> 49 virtual bool callback(
const std::string & msg)
const 53 QString msgQt = msg.c_str();
54 if(msgQt.contains(
"Processed"))
59 else if(msgQt.contains(
"Found"))
62 if(strSplit.size() == 3)
64 int nodes =
uStr2Int(*(++strSplit.begin()));
72 else if(msgQt.contains(
"Skipping") ||
73 msgQt.contains(
"Failed processing"))
82 QApplication::processEvents();
int UTILITE_EXP uStr2Int(const std::string &str)
RecoveryState(ProgressDialog *dialog)
void incrementStep(int steps=1)
Some conversion functions.
Wrappers of STL for convenient functions.
virtual bool callback(const std::string &msg) const
void setMaximumSteps(int steps)
std::list< std::string > uSplitNumChar(const std::string &str)
virtual bool callback(const std::string &msg) const
void appendText(const QString &text, const QColor &color=Qt::black)
void setCanceled(bool canceled)