MCPcopy Create free account
hub / github.com/PDAL/PDAL / run

Method run

pdal/Kernel.cpp:210–236  ·  view source on GitHub ↗

this just wraps ALL the code in total catch block

Source from the content-addressed store, hash-verified

208
209// this just wraps ALL the code in total catch block
210int Kernel::run(const StringList& cmdArgs, LogPtr& log)
211{
212 m_log = log;
213 m_manager.setLog(m_log);
214
215 ProgramArgs args;
216
217 try
218 {
219 if (!doSwitches(cmdArgs, args))
220 {
221 outputHelp();
222 return 0;
223 }
224 }
225 catch (const pdal_error& e)
226 {
227 Utils::printError(e.what());
228 return 1;
229 }
230
231 int startup_status = doStartup();
232 if (startup_status)
233 return startup_status;
234
235 return doExecution(args);
236}
237
238
239int Kernel::doExecution(ProgramArgs& args)

Callers

nothing calls this directly

Calls 4

outputHelpFunction · 0.85
printErrorFunction · 0.85
setLogMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected