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

[Go to the documentation of this file.](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__hash__interface_8h)

```cpp theme={null}
/**************************************************************
*
*   (C) 2022 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*
*   Restricted Rights Legend
*
*   Use, duplication, or disclosure of this
*   software and its documentation by the
*   Government is subject to restrictions as
*   set forth in subdivision [(b)(3)(ii)] of
*   the Rights in Technical Data and Computer
*   Software clause at 52.227-7013.
*
**************************************************************
*/

#ifndef ___DVS_VAR_HASH_INTERFACE_H___
#define ___DVS_VAR_HASH_INTERFACE_H___

#include "dynamic_visualization_store_enums.h"
#include "dynamic_visualization_store_error_codes.h"

#include "dvs_var_interface.h"

namespace DVS
{

class IVarHash
{
public:

 IVarHash() = default;
 virtual ~IVarHash() = default;
 IVarHash(IVarHash&&) = default;
 IVarHash& operator=(IVarHash&&) = default;
 IVarHash(const IVarHash&) = default;
 IVarHash& operator=(const IVarHash&) = default;

 virtual uint32_t get_var_hash_size(uint32_t index, VAR_TYPE type = VAR_TYPE::FLOAT) const = 0;

 virtual uint32_t get_var_hash_size(const IVar* var) const = 0;

 virtual dvs_ret get_var_hash(uint32_t index, char* hash, VAR_TYPE type = VAR_TYPE::FLOAT) const = 0;

 virtual dvs_ret get_var_hash(const IVar* var, char* hash) const = 0;
};

} //namespace DVS

#endif //___DVS_VAR_HASH_INTERFACE_H___
```
