AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
◆ CreateRunDramaTask() [2/2]
template<class TaskClass , typename... ParamTypes>
Create and run a DRAMA task, with standard exception handling. A convenience function wrapping up task creation and exception handling for many common cases. This function will create a DRAMA task with the specified constructor arguments and run that task. If exceptions are thrown they are caught and appropriate messages output. For a drama::Exception or std::exception based exception, exit() will be invoked with an appropriate non-zero return value. For other exceptions, the exception will be re-thrown to ensure a core-dump happens. This function will only return if the task completes without error. This template function is a Variadic template - a template which accepts a variable number of parameters. This allows us to take as the TaskClass object a sub-class of drama::Task with any number of parameters.
References CreateRunDramaTask(). |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8