Skip to main content
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.

Members

Public functions

Function IVar

default Return type:

Function ~IVar

default Return type:

Function IVar

default Parameters:
  • IVar &&
Return type:

Function operator=

default Parameters: Return type: IVar &

Function IVar

support copying Parameters:
  • const IVar &
Return type:

Function operator=

default Parameters: Return type: IVar &

Function get_name

Get the name of the variable. Returns: const char* name of variable Return type: const char *

Function get_var_type

Get the type of var. Returns: dvs_var_type type of var Return type: dvs_var_type

Function get_var_location

Get the var location. Returns: dvs_var_location location of var Return type: dvs_var_location

Function get_float_count_per_value

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 Return type: uint32_t

Function get_unit_dimension

Get the unit dimensions as string. Returns: const char* string of unit dimensions Return type: const char *

Function get_unit_label

Get the unit label as string. This is a specialized name referring to the dimensions Returns: const char* string of unit label Return type: const char *

Function get_dataset

Get the reference dataset for this var. Returns: const DVS::IDataset* the reference to the dataset Return type: const DVS::IDataset *

Function get_num_metadata

Get the num metadata values on this var. Returns: uint32_t number of metadata keys/values Return type: uint32_t

Function get_metadata_key

Get a metadata key based on the index. Parameters:
  • index: index of the key to return
Returns: const char* key for the metadata, nullptr if not found Parameters:
  • uint32_t index
Return type: const char *

Function get_metadata_value

Get the metadata value base on the index. Parameters:
  • index: index of the value to return
Returns: const char* value for the metadata, nullptr if not found Parameters:
  • uint32_t index
Return type: const char *

Function get_metadata_value

Get the metadata value based on the key. Parameters:
  • key: the key to return the value of
Returns: const char* value for the key, nullptr if not found Parameters:
  • const char * key
Return type: const char *