equal
deleted
inserted
replaced
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 |