    

 ## On this page

  

 

 # dvs\_hash\_interface

 Last update: 16.07.2025 

[Go to the documentation of this file.](dvs__hash__interface_8h.html)<a id="l00001" name="l00001"></a> 1/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

<a id="l00002" name="l00002"></a> 2\*

<a id="l00003" name="l00003"></a> 3\* (C) 2022-2025 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00004" name="l00004"></a> 4\*

<a id="l00005" name="l00005"></a> 5\* Restricted Rights Legend

<a id="l00006" name="l00006"></a> 6\*

<a id="l00007" name="l00007"></a> 7\* Use, duplication, or disclosure of this

<a id="l00008" name="l00008"></a> 8\* software and its documentation by the

<a id="l00009" name="l00009"></a> 9\* Government is subject to restrictions as

<a id="l00010" name="l00010"></a> 10\* set forth in subdivision \[(b)(3)(ii)\] of

<a id="l00011" name="l00011"></a> 11\* the Rights in Technical Data and Computer

<a id="l00012" name="l00012"></a> 12\* Software clause at 52.227-7013.

<a id="l00013" name="l00013"></a> 13\*

<a id="l00014" name="l00014"></a> 14\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

<a id="l00015" name="l00015"></a> 15\*/

<a id="l00016" name="l00016"></a> 16 

<a id="l00024" name="l00024"></a> 24\#ifndef \_\_\_DVS\_HASH\_INTERFACE\_H\_\_\_

<a id="l00025" name="l00025"></a> 25\#define \_\_\_DVS\_HASH\_INTERFACE\_H\_\_\_

<a id="l00026" name="l00026"></a> 26 

<a id="l00027" name="l00027"></a> 27\#include "[dynamic\_visualization\_store\_enums.h](dynamic__visualization__store__enums_8h.html)"

<a id="l00028" name="l00028"></a> 28\#include "[dynamic\_visualization\_store\_error\_codes.h](dynamic__visualization__store__error__codes_8h.html)"

<a id="l00029" name="l00029"></a> 29 

<a id="l00030" name="l00030"></a> 30namespace DVS

<a id="l00031" name="l00031"></a> 31{

<a id="l00032" name="l00032"></a> 32 

<a id="l00037" name="l00037"></a>[ 37](class_d_v_s_1_1_i_hash.html)class [IHash](class_d_v_s_1_1_i_hash.html)

<a id="l00038" name="l00038"></a> 38{

<a id="l00039" name="l00039"></a> 39public:

<a id="l00040" name="l00040"></a> 40 

<a id="l00041" name="l00041"></a>[ 41](class_d_v_s_1_1_i_hash.html#a2f73d1292c0162a03bd29e9094567a77) [IHash](class_d_v_s_1_1_i_hash.html#a2f73d1292c0162a03bd29e9094567a77)() = default; 

<a id="l00042" name="l00042"></a>[ 42](class_d_v_s_1_1_i_hash.html#a2e08d37be2095880bcb7d77b365ebde3) virtual [~IHash](class_d_v_s_1_1_i_hash.html#a2e08d37be2095880bcb7d77b365ebde3)() = default; 

<a id="l00043" name="l00043"></a>[ 43](class_d_v_s_1_1_i_hash.html#a41019f8e16b485b73c1a832df9c21665) [IHash](class_d_v_s_1_1_i_hash.html#a41019f8e16b485b73c1a832df9c21665)([IHash](class_d_v_s_1_1_i_hash.html)&amp;&amp;) = default; 

<a id="l00044" name="l00044"></a>[ 44](class_d_v_s_1_1_i_hash.html#af8c71b16b66a50b92918028b8bbc0d66) [IHash](class_d_v_s_1_1_i_hash.html)&amp; [operator=](class_d_v_s_1_1_i_hash.html#af8c71b16b66a50b92918028b8bbc0d66)([IHash](class_d_v_s_1_1_i_hash.html)&amp;&amp;) = default; 

<a id="l00045" name="l00045"></a>[ 45](class_d_v_s_1_1_i_hash.html#a17952af3cbc7170e37f882b17e800b3f) [IHash](class_d_v_s_1_1_i_hash.html#a17952af3cbc7170e37f882b17e800b3f)(const [IHash](class_d_v_s_1_1_i_hash.html)&amp;) = default; 

<a id="l00046" name="l00046"></a>[ 46](class_d_v_s_1_1_i_hash.html#aeaed8c50d66653ffe2a16f2d39278734) [IHash](class_d_v_s_1_1_i_hash.html)&amp; [operator=](class_d_v_s_1_1_i_hash.html#aeaed8c50d66653ffe2a16f2d39278734)(const [IHash](class_d_v_s_1_1_i_hash.html)&amp;) = default; 

<a id="l00047" name="l00047"></a> 47 

<a id="l00053" name="l00053"></a>[ 53](class_d_v_s_1_1_i_hash.html#ac0dedeb8d9dfd442d49d16cb4ddfb221) virtual uint32_t [get\_hash\_size](class_d_v_s_1_1_i_hash.html#ac0dedeb8d9dfd442d49d16cb4ddfb221)() const = 0;

<a id="l00054" name="l00054"></a> 54 

<a id="l00070" name="l00070"></a>[ 70](class_d_v_s_1_1_i_hash.html#a51eaee86a6e2db4dda7f4326daa33874) virtual [dvs\_ret](dynamic__visualization__store__error__codes_8h.html#a1d7466ae72e89fe36cbf2408b4f7d9c1) [get\_hash](class_d_v_s_1_1_i_hash.html#a51eaee86a6e2db4dda7f4326daa33874)(char* hash) const = 0;

<a id="l00071" name="l00071"></a> 71};



<a id="l00072" name="l00072"></a> 72 

<a id="l00073" name="l00073"></a> 73} //namespace DVS

<a id="l00074" name="l00074"></a> 74 

<a id="l00075" name="l00075"></a> 75\#endif //\_\_\_DVS\_HASH\_INTERFACE\_H\_\_\_

[DVS::IHash](class_d_v_s_1_1_i_hash.html)

Interface to get hash information from DVS objects.

**Definition** [dvs\_hash\_interface.h:38](#l00037)



[DVS::IHash::IHash](class_d_v_s_1_1_i_hash.html#a17952af3cbc7170e37f882b17e800b3f)

IHash(const IHash &amp;)=default

support copying



[DVS::IHash::~IHash](class_d_v_s_1_1_i_hash.html#a2e08d37be2095880bcb7d77b365ebde3)

virtual ~IHash()=default

default



[DVS::IHash::IHash](class_d_v_s_1_1_i_hash.html#a2f73d1292c0162a03bd29e9094567a77)

IHash()=default

default



[DVS::IHash::IHash](class_d_v_s_1_1_i_hash.html#a41019f8e16b485b73c1a832df9c21665)

IHash(IHash &amp;&amp;)=default

default



[DVS::IHash::get\_hash](class_d_v_s_1_1_i_hash.html#a51eaee86a6e2db4dda7f4326daa33874)

virtual dvs_ret get_hash(char *hash) const =0

Get the hash of the data.



[DVS::IHash::get\_hash\_size](class_d_v_s_1_1_i_hash.html#ac0dedeb8d9dfd442d49d16cb4ddfb221)

virtual uint32_t get_hash_size() const =0

Get the size of the hash to use with IHash::get_hash()



[DVS::IHash::operator=](class_d_v_s_1_1_i_hash.html#aeaed8c50d66653ffe2a16f2d39278734)

IHash &amp; operator=(const IHash &amp;)=default

default



[DVS::IHash::operator=](class_d_v_s_1_1_i_hash.html#af8c71b16b66a50b92918028b8bbc0d66)

IHash &amp; operator=(IHash &amp;&amp;)=default

default



[dynamic\_visualization\_store\_enums.h](dynamic__visualization__store__enums_8h.html)

Contains enums used in C/C++ API.



[dynamic\_visualization\_store\_error\_codes.h](dynamic__visualization__store__error__codes_8h.html)

Contains errors used in the DVS C/C++ API.



[dvs\_ret](dynamic__visualization__store__error__codes_8h.html#a1d7466ae72e89fe36cbf2408b4f7d9c1)

int32_t dvs_ret

Return value of methods, TODO.

**Definition** [dynamic\_visualization\_store\_error\_codes.h:32](dynamic__visualization__store__error__codes_8h_source.html#l00032)