#include #include "checkHost.h" #include "appEngine.h" #include CheckHost::CheckHost(ScriptReaderPtr s) : CommonObjects(s) { s->loader.addLoadTarget(s->root(), Storer::into(¶meterChecks)); } CheckHost::~CheckHost() { } void CheckHost::runChecks() const { loadScriptComponents(); 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() { }