MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / IsisMain

Function IsisMain

isis/src/base/objs/ProcessBySample/unitTest.cpp:63–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void 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");

Callers

nothing calls this directly

Calls 9

SetInputCubeMethod · 0.45
StartProcessMethod · 0.45
EndProcessMethod · 0.45
SetOutputCubeMethod · 0.45
ProcessCubeInPlaceMethod · 0.45
ProcessCubeMethod · 0.45
ProcessCubesMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected