01:
02:
03: #include <sstream>
04:
05: #include "RZError.hh"
06: #include "FileAnalyze.hh"
07:
08: int main(unsigned int argc, char **argv)
09: {
10:
11:
12: std::ios::sync_with_stdio(false);
13: std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
14:
15:
16:
17: if (argc != 5)
18: throw RZ::Error("Incorrect number of commandline arguments");
19:
20: int sourcefd = 0, rzafd = 0, rzbfd = 0, rzcfd = 0;
21: (std::istringstream(argv[1])) >> sourcefd;
22: (std::istringstream(argv[2])) >> rzafd;
23: (std::istringstream(argv[3])) >> rzbfd;
24: (std::istringstream(argv[4])) >> rzcfd;
25:
26: RZ::file_analyze(sourcefd, rzafd, rzbfd, rzcfd);
27:
28: return 0;
29: }
30:
31: