    

 ## On this page

  

 

 # ansys::dpf::EventHandler Class Reference

 Last update: 16.07.2025 

`#include <dpf_api.h>`

## <a id="pub-types" name="pub-types"></a>Public Types

enum [EventNature](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640) {   
 [eOperatorStarted](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a2cc032c33b1b3d8906a99ced4711047f), [eOperatorFinished](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a0700941093fa292915f9618bb0b61d84), [eOperatorSentException](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a93548451bb604b25b1b48544f69f5d94), [eOperatorError](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a0f25376abadec81fa52570e79d36d05f),   
 [eOperatorMakeSomeProgress](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a464a5c45643457a27c1465574121ddf6), [eOperatorWarning](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640af1894e7491fc61198867494dcc74bfac), [eOperatorAddedInWorkflow](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640ad9626a0a09879a7183a76e08746cdcd1), [eOperatorDelegatedRun](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640abeef70561c2a67ebb5d1d80f874018ec),   
 [eSessionWorkflowAdded](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640a3a282aed20a3d810ba9992e4727ee076), [eWorkflowEvaluationStarted](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640ac8ff87a9082ab3365a799654b0c8ff1c), [eWorkflowEvaluationFinished](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640ae0689b714a39e93dcbc855b06abc3f50)  
 } ## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a0c835701bfa869a237802e6341bcb233" name="a0c835701bfa869a237802e6341bcb233"></a>virtual void **onEvent** ([EventNature](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640) nature, const char \*args)=0 <a id="details" name="details"></a>## Detailed Description

Define a event handler for DPF.



## Member Enumeration Documentation

<a id="aa5dbd9875e86799e977a4ef66e78d640" name="aa5dbd9875e86799e977a4ef66e78d640"></a>## [◆ ](#aa5dbd9875e86799e977a4ef66e78d640)EventNature

 enum [ansys::dpf::EventHandler::EventNature](classansys_1_1dpf_1_1EventHandler.xhtml#aa5dbd9875e86799e977a4ef66e78d640)

Available states during DPF operation.

Enumerator<a id="aa5dbd9875e86799e977a4ef66e78d640a2cc032c33b1b3d8906a99ced4711047f" name="aa5dbd9875e86799e977a4ef66e78d640a2cc032c33b1b3d8906a99ced4711047f"></a>eOperatorStarted An operator was start.

<a id="aa5dbd9875e86799e977a4ef66e78d640a0700941093fa292915f9618bb0b61d84" name="aa5dbd9875e86799e977a4ef66e78d640a0700941093fa292915f9618bb0b61d84"></a>eOperatorFinished An operator has finished.

<a id="aa5dbd9875e86799e977a4ef66e78d640a93548451bb604b25b1b48544f69f5d94" name="aa5dbd9875e86799e977a4ef66e78d640a93548451bb604b25b1b48544f69f5d94"></a>eOperatorSentException An operator failed with an exception.

<a id="aa5dbd9875e86799e977a4ef66e78d640a0f25376abadec81fa52570e79d36d05f" name="aa5dbd9875e86799e977a4ef66e78d640a0f25376abadec81fa52570e79d36d05f"></a>eOperatorError An operator failed with an error.

<a id="aa5dbd9875e86799e977a4ef66e78d640a464a5c45643457a27c1465574121ddf6" name="aa5dbd9875e86799e977a4ef66e78d640a464a5c45643457a27c1465574121ddf6"></a>eOperatorMakeSomeProgress An operator is still running.

<a id="aa5dbd9875e86799e977a4ef66e78d640af1894e7491fc61198867494dcc74bfac" name="aa5dbd9875e86799e977a4ef66e78d640af1894e7491fc61198867494dcc74bfac"></a>eOperatorWarning An operator generated a warning.

<a id="aa5dbd9875e86799e977a4ef66e78d640ad9626a0a09879a7183a76e08746cdcd1" name="aa5dbd9875e86799e977a4ef66e78d640ad9626a0a09879a7183a76e08746cdcd1"></a>eOperatorAddedInWorkflow An operator was added to workflow.

<a id="aa5dbd9875e86799e977a4ef66e78d640abeef70561c2a67ebb5d1d80f874018ec" name="aa5dbd9875e86799e977a4ef66e78d640abeef70561c2a67ebb5d1d80f874018ec"></a>eOperatorDelegatedRun An operator was run.

<a id="aa5dbd9875e86799e977a4ef66e78d640a3a282aed20a3d810ba9992e4727ee076" name="aa5dbd9875e86799e977a4ef66e78d640a3a282aed20a3d810ba9992e4727ee076"></a>eSessionWorkflowAdded A workflow was added to a [Session](classansys_1_1dpf_1_1Session.xhtml).

<a id="aa5dbd9875e86799e977a4ef66e78d640ac8ff87a9082ab3365a799654b0c8ff1c" name="aa5dbd9875e86799e977a4ef66e78d640ac8ff87a9082ab3365a799654b0c8ff1c"></a>eWorkflowEvaluationStarted A workflow has started.

<a id="aa5dbd9875e86799e977a4ef66e78d640ae0689b714a39e93dcbc855b06abc3f50" name="aa5dbd9875e86799e977a4ef66e78d640ae0689b714a39e93dcbc855b06abc3f50"></a>eWorkflowEvaluationFinished A workflow has finished.