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

# DVS::IVar Class Reference

Interface for variables for the DVS Reader API.

`#include <dvs_var_interface.h>`

## Public Member Functions

| Type | Name |
| - | - |
| | **IVar** ()=default default |
|  virtual | **\~IVar** ()=default default |
| | **IVar** ([IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) &&)=default default |
| [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) & | **operator=** ([IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) &&)=default default |
| | **IVar** (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) &)=default support copying |
| [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) & | **operator=** (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_var.md) &)=default default |
| virtual const char \* | [get\_name](#a12b24dd196d3ddf3dbbdc29eca9cca3f) () const =0 Get the name of the variable. |
| virtual [dvs\_var\_type](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dynamic__visualization__store__enums_8h.md#af6aa6351345da4151507012681b3aff0) | [get\_var\_type](#ae837af2ee946d8f54695d1abf95c5cda) () const =0 Get the type of var. |
| virtual [dvs\_var\_location](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dynamic__visualization__store__enums_8h.md#af4f0eba512eff253854b44d7ce078491) | [get\_var\_location](#a7e97f43d3d1057267399c0e66deadd3d) () const =0 Get the var location. |
| virtual uint32\_t | [get\_float\_count\_per\_value](#a9dbdd84e6f6342deae82ede6dcf2156e) () const =0 Get the number of floats per value. |
| virtual const char \* | [get\_unit\_dimension](#a6aa67cf54eb22ee51a7bf5eeb778cee5) () const =0 Get the unit dimensions as string. |
| virtual const char \* | [get\_unit\_label](#aa484336b355e68f93069e97d771e4a6e) () const =0 Get the unit label as string. |
| virtual const [DVS::IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_dataset.md) \* | [get\_dataset](#acd4c1b8698417ac314a45143e92986d6) () const =0 Get the reference dataset for this var. |
| virtual uint32\_t | [get\_num\_metadata](#a2deab60f72955106a4a4a3f67a0f295e) () const =0 Get the num metadata values on this var. |
| virtual const char \* | [get\_metadata\_key](#ae18e148e2d2996891560734e53cd9671) (uint32\_t index) const =0 Get a metadata key based on the index. |
| virtual const char \* | [get\_metadata\_value](#a22432a4b79163a933a850a7a58dfe315) (uint32\_t index) const =0 Get the metadata value base on the index. |
| virtual const char \* | [get\_metadata\_value](#a04bb8ee80947c2bd09576961d65d4403) (const char \*key) const =0 Get the metadata value based on the key. |

## Detailed Description

Interface for variables for the DVS Reader API.

This object's lifetime is controlled by the query it is returned from. If the filter or uri of the query is changed this object will be destroyed. If this is a chained query and any of the parent queries are modified this object will also be destroyed. See [dvs\_query\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__query__interface_8h.md) for more information.

Definition at line [57](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__var__interface_8h_source) of file [dvs\_var\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__var__interface_8h_source).

## Member Function Documentation

### get\_dataset()

```cpp theme={null}
virtual const DVS::IDataset * DVS::IVar::get_dataset() const
```

`pure virtual`

Get the reference dataset for this var.

**Returns**

const [DVS::IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_dataset.md)\* the reference to the dataset

### get\_float\_count\_per\_value()

```cpp theme={null}
virtual uint32_t DVS::IVar::get_float_count_per_value() const
```

`pure virtual`

Get the number of floats per value.

Gets the size of each value, i.e. a scalar is 1 a vector is 3 etc.

**Returns**

uint32\_t size of each value for the var

### get\_metadata\_key()

```cpp theme={null}
virtual const char * DVS::IVar::get_metadata_key(uint32_t index) const
```

`pure virtual`

Get a metadata key based on the index.

**Parameters**

| Name | Description |
| - | - |
| index | index of the key to return |

**Returns**

const char\* key for the metadata, nullptr if not found

### get\_metadata\_value() \[1/2]

```cpp theme={null}
virtual const char * DVS::IVar::get_metadata_value(const char * key) const
```

`pure virtual`

Get the metadata value based on the key.

**Parameters**

| Name | Description |
| - | - |
| key | the key to return the value of |

**Returns**

const char\* value for the key, nullptr if not found

### get\_metadata\_value() \[2/2]

```cpp theme={null}
virtual const char * DVS::IVar::get_metadata_value(uint32_t index) const
```

`pure virtual`

Get the metadata value base on the index.

**Parameters**

| Name | Description |
| - | - |
| index | index of the value to return |

**Returns**

const char\* value for the metadata, nullptr if not found

### get\_name()

```cpp theme={null}
virtual const char * DVS::IVar::get_name() const
```

`pure virtual`

Get the name of the variable.

**Returns**

const char\* name of variable

### get\_num\_metadata()

```cpp theme={null}
virtual uint32_t DVS::IVar::get_num_metadata() const
```

`pure virtual`

Get the num metadata values on this var.

**Returns**

uint32\_t number of metadata keys/values

### get\_unit\_dimension()

```cpp theme={null}
virtual const char * DVS::IVar::get_unit_dimension() const
```

`pure virtual`

Get the unit dimensions as string.

**Returns**

const char\* string of unit dimensions

### get\_unit\_label()

```cpp theme={null}
virtual const char * DVS::IVar::get_unit_label() const
```

`pure virtual`

Get the unit label as string.

This is a specialized name referring to the dimensions

**Returns**

const char\* string of unit label

### get\_var\_location()

```cpp theme={null}
virtual dvs_var_location DVS::IVar::get_var_location() const
```

`pure virtual`

Get the var location.

**Returns**

dvs\_var\_location location of var

### get\_var\_type()

```cpp theme={null}
virtual dvs_var_type DVS::IVar::get_var_type() const
```

`pure virtual`

Get the type of var.

**Returns**

dvs\_var\_type type of var

The documentation for this class was generated from the following file:

* D:/ANSYSDev/Product-src/ensight/user\_defined\_src/readers/dvs/include/[dvs\_var\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__var__interface_8h_source)
