Classes
Namespaces
Includes
Included by
Source
/**************************************************************
*
* (C) 2021-2025 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___