#include "libparse.h" using namespace lib_parse; CheckException::CheckException(const QString& msg) : msg_store(msg) {} QString CheckException::message() const { return msg_store; } Analyzer::Analyzer(const QList >& providers) : check_providers(providers) {} #include #include std::shared_ptr Analyzer::validCheckWith(std::shared_ptr root) const { for (auto& v : check_providers){ QTime time_stamp = QTime::currentTime(); v->validCheck(root); auto current_stamp = QTime::currentTime(); qDebug() << QString(u8"校验器:%2 消耗时间:%1 ms。").arg(time_stamp.msecsTo(current_stamp)).arg(v->name()); } return root; }