> ## 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.

# libuserd::ReaderInfo Class Reference

Part of [LibUserd](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__userd.md)

`#include <libuserd_interface.h>`

Inheritance diagram for libuserd::ReaderInfo:

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

## Public Member Functions

| Type | Name |
| - | - |
| ErrorCode | [read\_dataset](#a4075a3b737a9e328acd27290d6203c5e) (const std::string \&file1, const std::string \&file2, IReader \*\&reader) override read\_dataset |

## Static Public Member Functions

| Type | Name |
| - | - |
| static bool | [get\_userd\_xtra\_gui\_values](#a54f1a4221009a860ada8e57dd1fd374a) (int reader\_id, Options \&userd\_options) Retrieves extra GUI values for a specified reader. |

## Friends

| Type | Name |
| - | - |
| class | [LibUserd](#a0d111acc2fa060cde5732eaccf8685eb) |

## Detailed Description

This class represents an available reader, before it has been instantiated. The [read\_dataset()](#a4075a3b737a9e328acd27290d6203c5e) function actually tries to open a dataset and returns an actual [Reader](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/classlibuserd_1_1_reader.md) instance that is reading the data.

Definition at line [314](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source) of file [libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source).

## Member Function Documentation

### get\_userd\_xtra\_gui\_values()

```cpp theme={null}
static bool libuserd::ReaderInfo::get_userd_xtra_gui_values(
    int reader_id,
    Options & userd_options
)
```

`static`

Retrieves extra GUI values for a specified reader.

This static method fetches additional GUI values associated with the given reader ID and stores them in the provided Options object.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | reader\_id | The ID of the reader for which to retrieve the GUI values. |
| \[out] | userd\_options | The Options object where the retrieved GUI values will be stored. |

**Returns**

True if there are any extra GUI values and false otherwise.

### read\_dataset()

```cpp theme={null}
ErrorCode libuserd::ReaderInfo::read_dataset(
    const std::string & file1,
    const std::string & file2,
    IReader *& reader
)
```

`override`

read\_dataset

Attempt to read some files on disk using this reader and the specified options. If successful, return an actual reader instance. \


> [!NOTE]
>
> The returned [Reader](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/classlibuserd_1_1_reader.md) pointer is owned by the [LibUserd](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/classlibuserd_1_1_lib_userd.md) instance. It should not be deleted by the caller.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | const | std::string & file1 ///\< the pimary filename (e.g. .cas) |
| \[in] | const | std::string & file2 ///\< an optional secondary filename (e.g. .dat) |
| \[out] | [Reader](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/classlibuserd_1_1_reader.md) | \* & reader ///\< the actual reader instance |

**Returns**

ErrorCode

## Friends And Related Symbol Documentation

### LibUserd

```cpp theme={null}
friend class LibUserd
```

`friend`

Definition at line [351](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source) of file [libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source).

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

* D:/ANSYSDev/Product-src/ensight/server/userd/include/[libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source)
