> ## 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::IHash Class Reference

`#include <dvs_hash_interface.h>`

Inheritance diagram for DVS::IHash:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=c20d7a7fb241094cef896538422587e5)

## Public Member Functions

| Type | Name |
| - | - |
| | **IHash** ()=default |
|  virtual | **\~IHash** ()=default |
| | **IHash** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &&)=default |
| [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) & | **operator=** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &&)=default |
| | **IHash** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &)=default |
| [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) & | **operator=** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &)=default |
| virtual uint32\_t | [get\_hash\_size](#ac0dedeb8d9dfd442d49d16cb4ddfb221) () const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_hash](#a51eaee86a6e2db4dda7f4326daa33874) (char \*hash) const =0 |

## Detailed Description

Definition at line [37](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__hash__interface_8h_source.md) of file [dvs\_hash\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__hash__interface_8h_source.md).

## Member Function Documentation

### get\_hash()

```cpp theme={null}
virtual dvs_ret DVS::IHash::get_hash(char * hash) const
```

`pure virtual`

Get the hash of the data.

The hash of data for DVS objects is a checksum + the hex size of the internal arrays. The size of the has should be retrieved via [IHash::get\_hash\_size()](#ac0dedeb8d9dfd442d49d16cb4ddfb221) to be compatible with future hash changes

Error Codes:

* DVS\_NONE: No error
* DVS\_NO\_DATA: Object has no data and hash is invalid
* DVS\_INVALID\_HASH: Hash of data is invalid. There is a problem with the data

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | hash | returns a null terminated string of size [IHash::get\_hash\_size()](#ac0dedeb8d9dfd442d49d16cb4ddfb221) to be filled if no error |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_hash\_size()

```cpp theme={null}
virtual uint32_t DVS::IHash::get_hash_size() const
```

`pure virtual`

Get the size of the hash to use with [IHash::get\_hash()](#a51eaee86a6e2db4dda7f4326daa33874)

**Returns**

uint32\_t the size of the hash from [IHash::get\_hash()](#a51eaee86a6e2db4dda7f4326daa33874)

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

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