equal
deleted
inserted
replaced
|
1 #include <cstdlib> |
|
2 #include <memory> |
|
3 |
|
4 #include <RelationalWriter.h> |
|
5 #include <RelpipeWriterException.h> |
|
6 #include <Factory.h> |
|
7 #include <TypeId.h> |
|
8 |
|
9 #include "CLI.h" |
|
10 |
|
11 using namespace relpipe::cli; |
|
12 using namespace relpipe::writer; |
|
13 |
|
14 int main(int argc, char** argv) { |
|
15 setlocale(LC_ALL, ""); |
|
16 CLI cli(argc, argv); |
|
17 |
|
18 int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
|
19 |
|
20 try { |
|
21 fwprintf(stderr, L"TODO: implement fstab reading\n"); |
|
22 |
|
23 } catch (RelpipeWriterException e) { |
|
24 fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str()); |
|
25 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
|
26 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
|
27 } |
|
28 |
|
29 return resultCode; |
|
30 } |