src/relpipe-out-chart.cpp
branchv_0
changeset 2 7ba3ae8cf1fc
parent 1 0e791c64f38b
child 3 0d857519a4c9
--- a/src/relpipe-out-chart.cpp	Mon Sep 24 13:47:02 2018 +0200
+++ b/src/relpipe-out-chart.cpp	Mon Sep 24 13:59:06 2018 +0200
@@ -1,7 +1,22 @@
 #include <iostream>
 
+#include <relpipe/cli/CLI.h>
+#include <relpipe/cli/RelpipeCLIException.h>
+#include <relpipe/reader/Factory.h>
+#include <relpipe/reader/RelationalReader.h>
+#include <relpipe/reader/RelpipeReaderException.h>
+
+
+using namespace relpipe::cli;
+using namespace relpipe::reader;
+
 int main(int argc, char**argv) {
+	CLI cli(argc, argv);
 	std::cout << "TODO: relpipe-out-chart..." << std::endl;
-	// char * x = new char[1000]; // simulate a memory leak and test that ASan is working
-	return 0;
+	
+	std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));
+
+	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
+
+	return resultCode;
 }