summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webCgi.cpp
blob: 646d08b0c9e9737448b08ecdf77798c78fcf8362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "cgiCommon.h"
#include "scriptLoader.h"
#include <boost/bind.hpp>

int
main(void)
{
	LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onBegin, _1));
	CgiEnvironment env;
	cgiServe(NULL, &env, std::cout);
	LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1));
	LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1));
	LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1));
}