> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ansys::dpf::EventHandler

![][C++]
![][public]

Define a event handler for DPF.

## Members

* [eOperatorAddedInWorkflow](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640ad9626a0a09879a7183a76e08746cdcd1)
* [eOperatorDelegatedRun](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640abeef70561c2a67ebb5d1d80f874018ec)
* [eOperatorError](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a0f25376abadec81fa52570e79d36d05f)
* [eOperatorFinished](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a0700941093fa292915f9618bb0b61d84)
* [eOperatorMakeSomeProgress](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a464a5c45643457a27c1465574121ddf6)
* [eOperatorSentException](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a93548451bb604b25b1b48544f69f5d94)
* [eOperatorStarted](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a2cc032c33b1b3d8906a99ced4711047f)
* [eOperatorWarning](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640af1894e7491fc61198867494dcc74bfac)
* [eSessionWorkflowAdded](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640a3a282aed20a3d810ba9992e4727ee076)
* [EventNature](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640)
* [eWorkflowEvaluationFinished](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640ae0689b714a39e93dcbc855b06abc3f50)
* [eWorkflowEvaluationStarted](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640ac8ff87a9082ab3365a799654b0c8ff1c)
* [onEvent](#classansys-dpf-eventhandler-1a0c835701bfa869a237802e6341bcb233)
* [\~EventHandler](#classansys-dpf-eventhandler-1a9d5cd1b0a226304f78b89096fdf1d938)

## Public types

### Enumeration type EventNature

![][public]

```cpp theme={null}
enum EventNature {
  eOperatorStarted,
  eOperatorFinished,
  eOperatorSentException,
  eOperatorError,
  eOperatorMakeSomeProgress,
  eOperatorWarning,
  eOperatorAddedInWorkflow,
  eOperatorDelegatedRun,
  eSessionWorkflowAdded,
  eWorkflowEvaluationStarted,
  eWorkflowEvaluationFinished
}
```

Available states during DPF operation.

#### Enumerator eOperatorStarted

An operator was start.

#### Enumerator eOperatorFinished

An operator has finished.

#### Enumerator eOperatorSentException

An operator failed with an exception.

#### Enumerator eOperatorError

An operator failed with an error.

#### Enumerator eOperatorMakeSomeProgress

An operator is still running.

#### Enumerator eOperatorWarning

An operator generated a warning.

#### Enumerator eOperatorAddedInWorkflow

An operator was added to workflow.

#### Enumerator eOperatorDelegatedRun

An operator was run.

#### Enumerator eSessionWorkflowAdded

A workflow was added to a [Session](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-session.md).

#### Enumerator eWorkflowEvaluationStarted

A workflow has started.

#### Enumerator eWorkflowEvaluationFinished

A workflow has finished.

## Friends

### Friend Session

![][C++]
![][public]

## Public functions

### Function \~EventHandler

![][public]

```cpp theme={null}
virtual ansys::dpf::EventHandler::~EventHandler()
```

**Return type**:

### Function onEvent

![][public]

```cpp theme={null}
virtual void ansys::dpf::EventHandler::onEvent(EventNature nature, const char *args)=0
```

**Parameters**:

* [EventNature](#classansys-dpf-eventhandler-1aa5dbd9875e86799e977a4ef66e78d640) **nature**
* const char \* **args**

**Return type**: void

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
