    

 ## On this page

  

 

 # DVS::IHash Class Reference

 Last update: 16.07.2025 

`#include <<a class="el" href="dvs__hash__interface_8h_source.xhtml">dvs_hash_interface.h</a>>`

Inheritance diagram for DVS::IHash:

 ![](/sites/default/files/migrate-content/postprocessing_2025_r1_1/class_d_v_s_1_1_i_hash.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a2f73d1292c0162a03bd29e9094567a77" name="a2f73d1292c0162a03bd29e9094567a77"></a> **IHash** ()=default <a id="a2e08d37be2095880bcb7d77b365ebde3" name="a2e08d37be2095880bcb7d77b365ebde3"></a>virtual **~IHash** ()=default <a id="a41019f8e16b485b73c1a832df9c21665" name="a41019f8e16b485b73c1a832df9c21665"></a> **IHash** ([IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;&amp;)=default <a id="af8c71b16b66a50b92918028b8bbc0d66" name="af8c71b16b66a50b92918028b8bbc0d66"></a>[IHash](class_d_v_s_1_1_i_hash.xhtml) &amp; **operator=** ([IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;&amp;)=default <a id="a17952af3cbc7170e37f882b17e800b3f" name="a17952af3cbc7170e37f882b17e800b3f"></a> **IHash** (const [IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;)=default <a id="aeaed8c50d66653ffe2a16f2d39278734" name="aeaed8c50d66653ffe2a16f2d39278734"></a>[IHash](class_d_v_s_1_1_i_hash.xhtml) &amp; **operator=** (const [IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;)=default virtual uint32\_t [get\_hash\_size](#ac0dedeb8d9dfd442d49d16cb4ddfb221) () const =0 virtual [dvs\_ret](dynamic__visualization__store__error__codes_8h.xhtml#a1d7466ae72e89fe36cbf2408b4f7d9c1) [get\_hash](#a51eaee86a6e2db4dda7f4326daa33874) (char \*hash) const =0 <a id="details" name="details"></a>## Detailed Description

Definition at line [37](dvs__hash__interface_8h_source.xhtml#l00037) of file [dvs\_hash\_interface.h](dvs__hash__interface_8h_source.xhtml).



## Member Function Documentation

<a id="a51eaee86a6e2db4dda7f4326daa33874" name="a51eaee86a6e2db4dda7f4326daa33874"></a>## [◆ ](#a51eaee86a6e2db4dda7f4326daa33874)get\_hash()

 virtual [dvs\_ret](dynamic__visualization__store__error__codes_8h.xhtml#a1d7466ae72e89fe36cbf2408b4f7d9c1) 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 "Get the size of the hash to use with IHash::get_hash()") 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 \[out\]hashreturns a null terminated string of size [IHash::get\_hash\_size()](#ac0dedeb8d9dfd442d49d16cb4ddfb221 "Get the size of the hash to use with IHash::get_hash()") to be filled if no error Returnsdvs\_ret DVS\_NONE on no error, otherwise see method description 



<a id="ac0dedeb8d9dfd442d49d16cb4ddfb221" name="ac0dedeb8d9dfd442d49d16cb4ddfb221"></a>## [◆ ](#ac0dedeb8d9dfd442d49d16cb4ddfb221)get\_hash\_size()

 virtual uint32\_t DVS::IHash::get\_hash\_size  ( )  const  pure virtual 

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

Returnsuint32\_t the size of the hash from [IHash::get\_hash()](#a51eaee86a6e2db4dda7f4326daa33874 "Get the hash of the data.") 



---

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](dvs__hash__interface_8h_source.xhtml)