Skip to main content

Post-processing tools 2025 R1

DVS::IObject Class Reference

Last update: 16.07.2025

#include <dvs_object_interface.h>

Inheritance diagram for DVS::IObject:
DVS::IDataset

Public Types

enum  ObjectDefType { PART , PLOT , CASE }
 

Public Member Functions

 IObject ()=default
 
virtual ~IObject ()=default
 
 IObject (IObject &&)=default
 
IObjectoperator= (IObject &&)=default
 
 IObject (const IObject &)=default
 
IObjectoperator= (const IObject &)=default
 
virtual const char * get_name () const =0
 
virtual ObjectDefType get_type () const =0
 
virtual const DVS::IDatasetget_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
 

Detailed Description

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

Member Enumeration Documentation

◆ ObjectDefType

Enum for object definition type.

Enumerator
PART 

Type for a part object.

PLOT 

Type for a plot object.

CASE 

Type for a case object, used for case/dataset wide variables.

Definition at line 59 of file dvs_object_interface.h.

Member Function Documentation

◆ get_dataset()

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

Get the reference dataset for this object.

Returns
const DVS::IDataset* reference to the dataset

◆ get_metadata_key()

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

Get the metadata key by index.

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

◆ get_metadata_value() [1/2]

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

Get the metadata value object.

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

◆ get_metadata_value() [2/2]

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

Get the metadata value by index.

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

◆ get_name()

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

Get the name of the object.

Returns
const char* name of the object

◆ get_num_metadata()

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

Get the number of metadata objects.

Returns
uint32_t number of metadata objects

◆ get_type()

virtual ObjectDefType DVS::IObject::get_type ( ) const
pure virtual

Get the type of the object.

Returns
ObjectDefType

The documentation for this class was generated from the following file:

Connect with Ansys