src/relpipe-tr-httpd.cpp
branchv_0
changeset 1 23c516259cc5
parent 0 7b70918c30af
child 2 4b05b16b97e6
equal deleted inserted replaced
0:7b70918c30af 1:23c516259cc5
    49 	try {
    49 	try {
    50 		CLIParser cliParser;
    50 		CLIParser cliParser;
    51 		Configuration configuration = cliParser.parse(cli.arguments());
    51 		Configuration configuration = cliParser.parse(cli.arguments());
    52 		std::shared_ptr<RelationalWriter> writer(relpipe::writer::Factory::create(std::cout));
    52 		std::shared_ptr<RelationalWriter> writer(relpipe::writer::Factory::create(std::cout));
    53 		std::shared_ptr<RelationalReader> reader(relpipe::reader::Factory::create(std::cin));
    53 		std::shared_ptr<RelationalReader> reader(relpipe::reader::Factory::create(std::cin));
    54 		HttpdHandler handler(writer, configuration);
    54 		std::shared_ptr<HTTPServer> httpServer(HTTPServer::create());
       
    55 		HttpdHandler handler(writer, configuration, httpServer);
    55 		reader->addHandler(&handler);
    56 		reader->addHandler(&handler);
    56 		reader->process();
    57 		reader->process();
    57 
    58 
    58 		resultCode = CLI::EXIT_CODE_SUCCESS;
    59 		resultCode = CLI::EXIT_CODE_SUCCESS;
    59 
    60