.. index:: pair: class; EE::TaskDiagnostics .. _doxid-class_e_e_1_1_task_diagnostics: class EE::TaskDiagnostics ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Diagnostics hooks for task contract violations. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class TaskDiagnostics { public: // typedefs typedef void(*)(:ref:`TaskDiagnostic`) :target:`Handler`; // methods static :ref:`Handler` :ref:`setHandler`(:ref:`Handler` handler); static void :target:`report`(:ref:`TaskDiagnostic` diagnostic); }; .. _details-class_e_e_1_1_task_diagnostics: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Diagnostics hooks for task contract violations. Debug builds print a loud diagnostic by default; release builds stay silent. Tests and tools may install a custom handler (for example to count or to hard-assert). The handler can be called from any thread. Methods ------- .. index:: pair: function; setHandler .. _doxid-class_e_e_1_1_task_diagnostics_1ae58c23fb480fce6335269f4f1b9875ec: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Handler` setHandler(:ref:`Handler` handler) Installs a handler and returns the previous one. nullptr restores the default.