#include #include "checkHost.h" #include "appEngine.h" #include CheckHost::CheckHost(const boost::filesystem::path & file) : XmlScriptParser(file, false) { loader.supportedStorers.insert(Storer::into(¶meterChecks)); } CheckHost::~CheckHost() { } void CheckHost::runChecks() const { parseDocument(); BOOST_FOREACH(const ParamCheckers::value_type & pc, parameterChecks) { if (!pc->performCheck()) { ApplicationEngine::getCurrent()->logMessage(false, pc->group(), pc->message()); throw CheckFailure(pc); } } } CheckHost::CheckFailure::CheckFailure(ParamCheckerCPtr fc) : failedCheck(fc) { } CheckHost::CheckFailure::~CheckFailure() throw() { }