author | František Kučera <franta-hg@frantovo.cz> |
Mon, 24 Sep 2018 13:59:06 +0200 | |
branch | v_0 |
changeset 2 | 7ba3ae8cf1fc |
parent 1 | 0e791c64f38b |
child 3 | 0d857519a4c9 |
permissions | -rw-r--r-- |
0
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#include <iostream> |
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
2
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
3 |
#include <relpipe/cli/CLI.h> |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
4 |
#include <relpipe/cli/RelpipeCLIException.h> |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
5 |
#include <relpipe/reader/Factory.h> |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
6 |
#include <relpipe/reader/RelationalReader.h> |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
7 |
#include <relpipe/reader/RelpipeReaderException.h> |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
8 |
|
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
9 |
|
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
10 |
using namespace relpipe::cli; |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
11 |
using namespace relpipe::reader; |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
12 |
|
0
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
int main(int argc, char**argv) { |
2
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
14 |
CLI cli(argc, argv); |
0
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
std::cout << "TODO: relpipe-out-chart..." << std::endl; |
2
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
16 |
|
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
17 |
std::shared_ptr<RelationalReader> reader(Factory::create(std::cin)); |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
18 |
|
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
19 |
int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
20 |
|
7ba3ae8cf1fc
add relpipe pkg-config libraries using cmake
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
21 |
return resultCode; |
0
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
} |