RZ

01: // FileRealize.gateway.cc # the actual realize algorithm
02: 
03: #include <sstream>
04: 
05: #include "RZError.hh"
06: #include "FileRealize.hh"
07: 
08: int main(unsigned int argc, char **argv)
09: {
10:     // ######## gnu and library specific stuff ########
11: 
12:     std::ios::sync_with_stdio(false);
13:     std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
14: 
15:     // ######## invocation FileRealize.gateway RZFD RECONSFD ########
16: 
17:     if (argc != 3)
18:         throw RZ::Error("Incorrect number of commandline arguments");
19: 
20:     int rgzfd = 0, reconsfd = 0;
21:     (std::istringstream(argv[1])) >> rgzfd;
22:     (std::istringstream(argv[2])) >> reconsfd;
23: 
24:     RZ::file_realize(rgzfd, reconsfd);
25: 
26:     return 0;
27: }
28:         
29: // FileRealize.gateway.cc # the actual realize algorithm