| 61 | |
| 62 | |
| 63 | void IsisMain() { |
| 64 | |
| 65 | |
| 66 | Isis::Preference::Preferences(true); |
| 67 | Isis::ProcessBySample p; |
| 68 | |
| 69 | cout << "Testing StartProcess routines that accept processing functions:" << endl; |
| 70 | |
| 71 | |
| 72 | p.SetInputCube("FROM"); |
| 73 | p.StartProcess(oneInput); |
| 74 | p.EndProcess(); |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | p.SetOutputCube("TO", 10, 20, 3); |
| 80 | p.StartProcess(oneOutput); |
| 81 | p.EndProcess(); |
| 82 | |
| 83 | p.SetInputCube("FROM"); |
| 84 | p.SetOutputCube("TO"); |
| 85 | p.StartProcess(oneInAndOut); |
| 86 | p.EndProcess(); |
| 87 | |
| 88 | |
| 89 | p.SetInputCube("FROM"); |
| 90 | p.SetInputCube("FROM2"); |
| 91 | p.SetOutputCube("TO"); |
| 92 | p.SetOutputCube("TO2"); |
| 93 | p.StartProcess(twoInAndOut); |
| 94 | p.EndProcess(); |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | cout << "Testing Process routines which accept functors:" << endl; |
| 104 | |
| 105 | InPlaceFunctor inPlace; |
| 106 | InputOutputFunctor inputOutput; |
| 107 | InputOutputListFunctor inputOutputList; |
| 108 | |
| 109 | p.SetInputCube("FROM"); |
| 110 | p.ProcessCubeInPlace(inPlace,false); |
| 111 | p.EndProcess(); |
| 112 | |
| 113 | |
| 114 | p.SetInputCube("FROM"); |
| 115 | p.SetOutputCube("TO"); |
| 116 | p.ProcessCube(inputOutput,false); |
| 117 | p.EndProcess(); |
| 118 | |
| 119 | p.SetInputCube("FROM"); |
| 120 | p.SetInputCube("FROM2"); |
nothing calls this directly
no test coverage detected