ctools  2.0.0
 All Classes Namespaces Files Functions Variables Macros Pages
support.cpp File Reference

Support function implementation. More...

#include "GammaLib.hpp"
#include "GCTALib.hpp"
#include "support.hpp"

Go to the source code of this file.

Functions

int execute_ctool (ctool *tool)
 Execute ctool. More...
 
void report_ctool_failure (const std::string &name, const std::string &message)
 Report ctool failure. More...
 

Detailed Description

Support function implementation.

Author
Juergen Knoedlseder

Definition in file support.cpp.

Function Documentation

int execute_ctool ( ctool tool)

Execute ctool.

Parameters
[in]toolPointer to ctool.
Returns
Return code

Executes a ctool. The execution is enclosed in a try-catch statement so that any exceptions that occur during execution will be properly logged and written into the standard output.

Definition at line 58 of file support.cpp.

References ctool::execute().

Referenced by main().

void report_ctool_failure ( const std::string &  name,
const std::string &  message 
)

Report ctool failure.

Parameters
[in]nameName of ctool.
[in]messageException message.

Reports a ctools failure.

Definition at line 106 of file support.cpp.

Referenced by main().