src/relpipe-out-x11.cpp
branchv_0
changeset 3 2c4e533e9e33
parent 0 17fc678e0a94
child 10 e5a93cfec371
equal deleted inserted replaced
2:6851c08c6260 3:2c4e533e9e33
    34 using namespace relpipe::out::x11;
    34 using namespace relpipe::out::x11;
    35 
    35 
    36 int main(int argc, char**argv) {
    36 int main(int argc, char**argv) {
    37 	CLI cli(argc, argv);
    37 	CLI cli(argc, argv);
    38 	CLI::untieStdIO();
    38 	CLI::untieStdIO();
    39 	
    39 
    40 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
    40 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
    41 
    41 
    42 	try {
    42 	try {
    43 		CLIParser cliParser;
    43 		CLIParser cliParser;
    44 		Configuration configuration = cliParser.parse(cli.arguments());
    44 		Configuration configuration = cliParser.parse(cli.arguments());
    45 		std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));
    45 		std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));
    46 		X11Handler handler(std::cout, configuration);
    46 		X11Handler handler(configuration);
    47 		reader->addHandler(&handler);
    47 		reader->addHandler(&handler);
    48 		reader->process();
    48 		reader->process();
    49 
    49 
    50 		resultCode = CLI::EXIT_CODE_SUCCESS;
    50 		resultCode = CLI::EXIT_CODE_SUCCESS;
    51 
    51