summaryrefslogtreecommitdiff
path: root/project2/common/checkHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/checkHost.cpp')
-rw-r--r--project2/common/checkHost.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/common/checkHost.cpp b/project2/common/checkHost.cpp
index 343b255..4f2ab44 100644
--- a/project2/common/checkHost.cpp
+++ b/project2/common/checkHost.cpp
@@ -3,10 +3,10 @@
#include "appEngine.h"
#include <boost/foreach.hpp>
-CheckHost::CheckHost(const boost::filesystem::path & file) :
- XmlScriptParser(file, false)
+CheckHost::CheckHost(ScriptReaderPtr s) :
+ CommonObjects(s)
{
- loader.supportedStorers.insert(Storer::into<ElementLoader>(&parameterChecks));
+ s->loader.addLoadTarget(s->root(), Storer::into<ElementLoader>(&parameterChecks));
}
CheckHost::~CheckHost()
@@ -16,7 +16,7 @@ CheckHost::~CheckHost()
void
CheckHost::runChecks() const
{
- parseDocument();
+ loadScriptComponents();
BOOST_FOREACH(const ParamCheckers::value_type & pc, parameterChecks) {
if (!pc->performCheck()) {
ApplicationEngine::getCurrent()->logMessage(false, pc->group(), pc->message());