Skip to main content

Post-processing tools 2023 R2

DVS::IVar Class Reference

Last update: 17.04.2023

Interface for variables for the DVS Reader API. More...

#include <dvs_var_interface.h>

Public Member Functions

 IVar ()=default
 default
 
virtual ~IVar ()=default
 default
 
 IVar (IVar &&)=default
 default
 
IVaroperator= (IVar &&)=default
 default
 
 IVar (const IVar &)=default
 support copying
 
IVaroperator= (const IVar &)=default
 default
 
virtual const char * get_name () const =0
 Get the name of the variable. More...
 
virtual dvs_var_type get_var_type () const =0
 Get the type of var. More...
 
virtual dvs_var_location get_var_location () const =0
 Get the var location. More...
 
virtual uint32_t get_float_count_per_value () const =0
 Get the number of floats per value. More...
 
virtual const char * get_unit_dimension () const =0
 Get the unit dimensions as string. More...
 
virtual const char * get_unit_label () const =0
 Get the unit label as string. More...
 
virtual const DVS::IDatasetget_dataset () const =0
 Get the reference dataset for this var. More...
 
virtual uint32_t get_num_metadata () const =0
 Get the num metadata values on this var. More...
 
virtual const char * get_metadata_key (uint32_t index) const =0
 Get a metadata key based on the index. More...
 
virtual const char * get_metadata_value (uint32_t index) const =0
 Get the metadata value base on the index. More...
 
virtual const char * get_metadata_value (const char *key) const =0
 Get the metadata value based on the key. More...
 

Detailed Description

Interface for variables for the DVS Reader API.

This object's lifetime is controlled by the query it is returned from. If the filter or uri of the query is changed this object will be destroyed. If this is a chained query and any of the parent queries are modified this object will also be destroyed. See dvs_query_interface.h for more information.

Definition at line 44 of file dvs_var_interface.h.

Member Function Documentation

◆ get_dataset()

virtual const DVS::IDataset* DVS::IVar::get_dataset ( ) const
pure virtual

Get the reference dataset for this var.

Returns
const DVS::IDataset* the reference to the dataset

◆ get_float_count_per_value()

virtual uint32_t DVS::IVar::get_float_count_per_value ( ) const
pure virtual

Get the number of floats per value.

Gets the size of each value, i.e. a scalar is 1 a vector is 3 etc.

Returns
uint32_t size of each value for the var

◆ get_metadata_key()

virtual const char* DVS::IVar::get_metadata_key ( uint32_t  index) const
pure virtual

Get a metadata key based on the index.

Parameters
indexindex of the key to return
Returns
const char* key for the metadata, nullptr if not found

◆ get_metadata_value() [1/2]

virtual const char* DVS::IVar::get_metadata_value ( const char *  key) const
pure virtual

Get the metadata value based on the key.

Parameters
keythe key to return the value of
Returns
const char* value for the key, nullptr if not found

◆ get_metadata_value() [2/2]

virtual const char* DVS::IVar::get_metadata_value ( uint32_t  index) const
pure virtual

Get the metadata value base on the index.

Parameters
indexindex of the value to return
Returns
const char* value for the metadata, nullptr if not found

◆ get_name()

virtual const char* DVS::IVar::get_name ( ) const
pure virtual

Get the name of the variable.

Returns
const char* name of variable

◆ get_num_metadata()

virtual uint32_t DVS::IVar::get_num_metadata ( ) const
pure virtual

Get the num metadata values on this var.

Returns
uint32_t number of metadata keys/values

◆ get_unit_dimension()

virtual const char* DVS::IVar::get_unit_dimension ( ) const
pure virtual

Get the unit dimensions as string.

Returns
const char* string of unit dimensions

◆ get_unit_label()

virtual const char* DVS::IVar::get_unit_label ( ) const
pure virtual

Get the unit label as string.

This is a specialized name referring to the dimensions

Returns
const char* string of unit label

◆ get_var_location()

virtual dvs_var_location DVS::IVar::get_var_location ( ) const
pure virtual

Get the var location.

Returns
dvs_var_location location of var

◆ get_var_type()

virtual dvs_var_type DVS::IVar::get_var_type ( ) const
pure virtual

Get the type of var.

Returns
dvs_var_type type of var

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_var_interface.h