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

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

```cpp theme={null}
/**************************************************************
*
*   (C) 2021 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_INTERFACE_H___
#define ___DVS_VAR_INTERFACE_H___

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

namespace DVS
{

class IDataset;
enum class VAR_TYPE {
    FLOAT,
 /* New types add here before INT64 */
    INT64 // Keep INT64 at the end
};

class IVar
{
public:

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

 virtual const char* get_name() const = 0;

 virtual dvs_var_type get_var_type() const = 0;

 virtual dvs_var_location get_var_location() const = 0;

 virtual uint32_t get_float_count_per_value() const = 0;

 virtual const char* get_unit_dimension() const = 0;

 virtual const char* get_unit_label() const = 0;

 virtual const DVS::IDataset* get_dataset() const = 0;

 virtual uint32_t get_num_metadata() const = 0;

 virtual const char* get_metadata_key(uint32_t index) const = 0;

 virtual const char* get_metadata_value(uint32_t index) const = 0;

 virtual const char* get_metadata_value(const char* key) const = 0;
};

} //namespace DVS

#endif //___DVS_VAR_INTERFACE_H___
```
