summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webCgi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/p2webCgi.cpp')
-rw-r--r--project2/cgi/p2webCgi.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/project2/cgi/p2webCgi.cpp b/project2/cgi/p2webCgi.cpp
index f10573f..6168819 100644
--- a/project2/cgi/p2webCgi.cpp
+++ b/project2/cgi/p2webCgi.cpp
@@ -1,12 +1,13 @@
#include "cgiCommon.h"
#include "../xmlObjectLoader.h"
+#include <boost/bind.hpp>
int
main(void)
{
cgiServe(NULL, std::cout);
- LoaderBase::onIteration();
- LoaderBase::onPeriodic();
- LoaderBase::onIdle();
+ LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1));
+ LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1));
+ LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1));
}