| 37 | }; |
| 38 | }; |
| 39 | void IsisMain() { |
| 40 | |
| 41 | Isis::Preference::Preferences(true); |
| 42 | |
| 43 | cout << "Testing Isis::ProcessByLine Class ... " << endl; |
| 44 | Isis::ProcessByLine p; |
| 45 | |
| 46 | p.SetInputCube("FROM"); |
| 47 | p.StartProcess(oneInput); |
| 48 | p.EndProcess(); |
| 49 | |
| 50 | p.SetOutputCube("TO", 10, 20, 3); |
| 51 | p.StartProcess(oneOutput); |
| 52 | p.EndProcess(); |
| 53 | |
| 54 | p.SetInputCube("FROM"); |
| 55 | p.SetOutputCube("TO"); |
| 56 | p.StartProcess(oneInAndOut); |
| 57 | p.EndProcess(); |
| 58 | |
| 59 | p.SetInputCube("FROM"); |
| 60 | p.SetInputCube("FROM2"); |
| 61 | p.SetOutputCube("TO"); |
| 62 | p.SetOutputCube("TO2"); |
| 63 | p.StartProcess(twoInAndOut); |
| 64 | p.EndProcess(); |
| 65 | |
| 66 | cout << "Testing for Functors\n"; |
| 67 | Functor1 func1; |
| 68 | Functor2 func2; |
| 69 | Functor3 func3; |
| 70 | p.SetInputCube("FROM"); |
| 71 | cout << "Functor1\n"; |
| 72 | p.ProcessCubeInPlace(func1, false); |
| 73 | p.EndProcess(); |
| 74 | |
| 75 | p.SetInputCube("FROM"); |
| 76 | p.SetOutputCube("TO"); |
| 77 | cout << "Functor2\n"; |
| 78 | p.ProcessCube(func2, false); |
| 79 | p.EndProcess(); |
| 80 | |
| 81 | p.SetInputCube("FROM"); |
| 82 | p.SetInputCube("FROM2"); |
| 83 | p.SetOutputCube("TO"); |
| 84 | p.SetOutputCube("TO2"); |
| 85 | cout << "Functor3\n"; |
| 86 | p.ProcessCubes(func3, false); |
| 87 | p.EndProcess(); |
| 88 | |
| 89 | cout << "End Testing Functors\n"; |
| 90 | |
| 91 | try { |
| 92 | cout << "Testing error for no input/output ..." << endl; |
| 93 | p.StartProcess(oneInput); |
| 94 | } |
| 95 | catch(Isis::IException &e) { |
| 96 | e.print(); |
nothing calls this directly
no test coverage detected