relpipe-in-cli.cpp
branchv_0
changeset 1 21ef3f6cd5e9
parent 0 cac146f5345a
child 2 6615824d69b7
--- a/relpipe-in-cli.cpp	Sat Aug 11 22:16:13 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#include <cstdlib>
-#include <memory>
-
-#include <RelationalWriter.h>
-#include <RelpipeWriterException.h>
-#include <Factory.h>
-#include <TypeId.h>
-
-#include "CLI.h"
-
-using namespace relpipe::cli;
-using namespace relpipe::writer;
-
-int main(int argc, char** argv) {
-	setlocale(LC_ALL, "");
-	CLI cli(argc, argv);
-
-	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
-
-	try {
-		fwprintf(stderr, L"TODO: implement fstab reading\n");
-
-	} catch (RelpipeWriterException e) {
-		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());
-		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
-		resultCode = CLI::EXIT_CODE_DATA_ERROR;
-	}
-
-	return resultCode;
-}