> ## 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::IObject Class Reference

Interface for part/plot objects for DVS Reader API.

`#include <dvs_object_interface.h>`

Inheritance diagram for DVS::IObject:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=02cac3622fde62b67aa1454d79468607)

## Public Types

| Type | Name |
| - | - |
| enum | [ObjectDefType](#aa897daa1f7d0467515fd108c29015348) \{ [PART](#aa897daa1f7d0467515fd108c29015348a8b2484e08a16329d2d91c18c254f5ca6) , [PLOT](#aa897daa1f7d0467515fd108c29015348abe80fa1e67dae7efb56fdb2936914cae) , [CASE](#aa897daa1f7d0467515fd108c29015348a03dcfd36d493cd1d828af236e2c357fd) } Enum for object definition type. |

## Public Member Functions

| Type | Name |
| - | - |
| | **IObject** ()=default default |
|  virtual | **\~IObject** ()=default default |
| | **IObject** ([IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) &&)=default default |
| [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) & | **operator=** ([IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) &&)=default default |
| | **IObject** (const [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) &)=default support copying |
| [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) & | **operator=** (const [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) &)=default default |
| virtual const char \* | [get\_name](#a39be8b08200f75b20a7b5cf715ba9dd3) () const =0 Get the name of the object. |
| virtual [ObjectDefType](#aa897daa1f7d0467515fd108c29015348) | [get\_type](#a889c46624013cc3802c7164d153b95f6) () const =0 Get the type of the object. |
| virtual const [DVS::IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_dataset.md) \* | [get\_dataset](#aea688a307b1cb02ae53e0e8fd3791e64) () const =0 Get the reference dataset for this object. |
| virtual uint32\_t | [get\_num\_metadata](#a31db3b716cc815c2c73f826f24384f6a) () const =0 Get the number of metadata objects. |
| virtual const char \* | [get\_metadata\_key](#a04ee2919ffeb46d966d4675c8cd4420c) (uint32\_t index) const =0 Get the metadata key by index. |
| virtual const char \* | [get\_metadata\_value](#a7a37d603ccf93f7f1ec9f962fa9d1f61) (uint32\_t index) const =0 Get the metadata value by index. |
| virtual const char \* | [get\_metadata\_value](#aa33105e0510c3a2b0da022d5e9632bc8) (const char \*key) const =0 Get the metadata value object. |

## Detailed Description

Interface for part/plot objects for 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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__query__interface_8h.md) for more information.

Definition at line [44](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__object__interface_8h_source) of file [dvs\_object\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__object__interface_8h_source).

## Member Enumeration Documentation

### ObjectDefType

```cpp theme={null}
enum DVS::IObject::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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__object__interface_8h_source) of file [dvs\_object\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__object__interface_8h_source).

## Member Function Documentation

### get\_dataset()

```cpp theme={null}
virtual const DVS::IDataset * DVS::IObject::get_dataset() const
```

`pure virtual`

Get the reference dataset for this object.

**Returns**

const [DVS::IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_dataset.md)\* reference to the dataset

### get\_metadata\_key()

```cpp theme={null}
virtual const char * DVS::IObject::get_metadata_key(uint32_t index) const
```

`pure virtual`

Get the metadata key by index.

**Parameters**

| Name | Description |
| - | - |
| index | index of the metadata to get the key for |

**Returns**

const char\* key of the metadata, nullptr if not found

### get\_metadata\_value() \[1/2]

```cpp theme={null}
virtual const char * DVS::IObject::get_metadata_value(const char * key) const
```

`pure virtual`

Get the metadata value object.

**Parameters**

| Name | Description |
| - | - |
| key | key to get the value for |

**Returns**

const char\* value of the metadata, nullptr if not found

### get\_metadata\_value() \[2/2]

```cpp theme={null}
virtual const char * DVS::IObject::get_metadata_value(uint32_t index) const
```

`pure virtual`

Get the metadata value by index.

**Parameters**

| Name | Description |
| - | - |
| index | index of the metadata to get the value for |

**Returns**

const char\* value of the metadata, nullptr if not found

### get\_name()

```cpp theme={null}
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()

```cpp theme={null}
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()

```cpp theme={null}
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:

* D:/ANSYSDev/Product-src/ensight/user\_defined\_src/readers/dvs/include/[dvs\_object\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__object__interface_8h_source)
