    

 ## On this page

  

 

 # DVS::IHash Class Reference

 Last update: 16.07.2025 

Interface to get hash information from DVS objects. [More...](class_d_v_s_1_1_i_hash.xhtml#details)

`#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/tools_for_ensight_post_processing_import/class_d_v_s_1_1_i_hash.png)



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

<a id="a2f73d1292c0162a03bd29e9094567a77"></a> [IHash](class_d_v_s_1_1_i_hash.xhtml#a2f73d1292c0162a03bd29e9094567a77) ()=default default   
 <a id="a2e08d37be2095880bcb7d77b365ebde3"></a>virtual [~IHash](class_d_v_s_1_1_i_hash.xhtml#a2e08d37be2095880bcb7d77b365ebde3) ()=default default   
 <a id="a41019f8e16b485b73c1a832df9c21665"></a> [IHash](class_d_v_s_1_1_i_hash.xhtml#a41019f8e16b485b73c1a832df9c21665) ([IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;&amp;)=default default   
 <a id="ac5648bfca884e7946ca52f2da177f872"></a>[IHash](class_d_v_s_1_1_i_hash.xhtml) &amp; [operator=](class_d_v_s_1_1_i_hash.xhtml#ac5648bfca884e7946ca52f2da177f872) ([IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;&amp;)=default default   
 <a id="a17952af3cbc7170e37f882b17e800b3f"></a> [IHash](class_d_v_s_1_1_i_hash.xhtml#a17952af3cbc7170e37f882b17e800b3f) (const [IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;)=default support copying   
 <a id="a31c93a2f7434c7e478289086bbb031b0"></a>[IHash](class_d_v_s_1_1_i_hash.xhtml) &amp; [operator=](class_d_v_s_1_1_i_hash.xhtml#a31c93a2f7434c7e478289086bbb031b0) (const [IHash](class_d_v_s_1_1_i_hash.xhtml) &amp;)=default default   
 virtual uint32\_t [get\_hash\_size](class_d_v_s_1_1_i_hash.xhtml#ac0dedeb8d9dfd442d49d16cb4ddfb221) () const =0 Get the size of the hash to use with [IHash::get\_hash()](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874 "Get the hash of the data.") [More...](class_d_v_s_1_1_i_hash.xhtml#ac0dedeb8d9dfd442d49d16cb4ddfb221)  
 virtual [dvs\_ret](dynamic__visualization__store__error__codes_8h.xhtml#a1d7466ae72e89fe36cbf2408b4f7d9c1) [get\_hash](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874) (char \*hash) const =0 Get the hash of the data. [More...](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874)  
 <a id="details" name="details"></a>## Detailed Description

Interface to get hash information from DVS objects.

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"></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()](class_d_v_s_1_1_i_hash.xhtml#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()](class_d_v_s_1_1_i_hash.xhtml#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"></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()](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874 "Get the hash of the data.")

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



---

The documentation for this class was generated from the following file:- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/ensight/user\_defined\_src/readers/dvs/include/[dvs\_hash\_interface.h](dvs__hash__interface_8h_source.xhtml)