ctools 2.1.0.dev
Loading...
Searching...
No Matches
support.hpp File Reference

Support function definitions. More...

#include "ctool.hpp"

Go to the source code of this file.

Functions

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

Detailed Description

Support function definitions.

Author
Juergen Knoedlseder

Definition in file support.hpp.

Function Documentation

◆ execute_ctool()

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().

◆ report_ctool_failure()

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().