> ## 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.

# ansys::dpf::OperatorConfig Class Reference

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::OperatorConfig:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9dfb2df1a22fd6c5a011fad15a01b7ce)

## Public Member Functions

| Type | Name |
| - | - |
| | [OperatorConfig](#a3612c4dc533aa2cce61167723dccb9a9) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | **OperatorConfig** ([OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) &&) noexcept |
| | **OperatorConfig** ([OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) const &) |
| [OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) & | **operator=** ([OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) const &) |
| [OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) & | **operator=** ([OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md) &&) noexcept |
| int | [numOptions](#aadd5caf726b8a6298c1b774dd6fd2710) () const |
| std::vector\< std::string > | [options](#ae02e4297e6fa9030d1ff3179fefe04b5) () |
| std::map\< std::string, std::string > | [optionsAndValues](#a1a374278aa4699eb86506544b1c573e1) () |
| void | [set](#a13fa51659fa378a6f67b344bbb9ea1be) (std::string const \&option, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) value) |
| void | [set](#a0d8e1b93cb98e68d514566a3b8bd15c3) (std::string const \&option, [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#acb480013bfed185b5e34a0bdcb0e3790) value) |
| void | [set](#ac299a4de0fbf84d4405d35c7bfe0d9f6) (std::string const \&option, bool value) |
| int | [getIntValue](#a01286ef94df39436cb4696d87e606121) (std::string const \&option) const |
| double | [getDoubleValue](#a8401495df9777cc8a53f35ecaca55460) (std::string const \&option) const |
| bool | [getBoolValue](#a3948249196192234ee24269ba8e994b7) (std::string const \&option) const |
| bool | [hasOption](#add327e8dbb91f54919cce1a6966955e6) (std::string const \&option) const |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Detailed Description

used to configure options on how the operator is running.

**Examples**

[OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md).

## Constructor & Destructor Documentation

### OperatorConfig()

```cpp theme={null}
ansys::dpf::OperatorConfig::OperatorConfig(Client const *const client)
```

`explicit`

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

## Member Function Documentation

### getBoolValue()

```cpp theme={null}
bool ansys::dpf::OperatorConfig::getBoolValue(std::string const & option) const
```

**Returns**

Boolean value of given option.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |

**Examples**

[OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md).

### getDoubleValue()

```cpp theme={null}
double ansys::dpf::OperatorConfig::getDoubleValue(std::string const & option) const
```

**Returns**

Double value of given option.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |

### getIntValue()

```cpp theme={null}
int ansys::dpf::OperatorConfig::getIntValue(std::string const & option) const
```

**Returns**

Integer value of given option.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |

### hasOption()

```cpp theme={null}
bool ansys::dpf::OperatorConfig::hasOption(std::string const & option) const
```

**Returns**

Boolean value if given optin exists in config.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |

### numOptions()

```cpp theme={null}
int ansys::dpf::OperatorConfig::numOptions() const
```

**Returns**

Number of avalable options.

### options()

```cpp theme={null}
std::vector< std::string > ansys::dpf::OperatorConfig::options()
```

**Returns**

Vector of option names.

### optionsAndValues()

```cpp theme={null}
std::map< std::string, std::string > ansys::dpf::OperatorConfig::optionsAndValues()
```

**Returns**

Map of option and printable values.

### set() \[1/3]

```cpp theme={null}
void ansys::dpf::OperatorConfig::set(
    std::string const & option,
    bool value
)
```

Sets option to boolean value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |
| \[in] | value | Value for option. |

### set() \[2/3]

```cpp theme={null}
void ansys::dpf::OperatorConfig::set(
    std::string const & option,
    dp_double value
)
```

Sets option to double value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |
| \[in] | value | Value for option. |

### set() \[3/3]

```cpp theme={null}
void ansys::dpf::OperatorConfig::set(
    std::string const & option,
    dp_int value
)
```

Sets option to integer value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option | Option name. |
| \[in] | value | Value for option. |

**Examples**

[OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md).
