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

# ansys::Project::Metadata Class Reference

Dictionary of values associated with an [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md).

`#include "Metadata.hpp"`

## Public Member Functions

| Type | Name |
| - | - |
| bool | [hasKey](#abd919e05d7efcaf98bfaf0311df6845d) (const std::string) const |
| bool | [removeKey](#a8b6eb082695c32ae5d06f4aecea370c8) (const std::string) |
| bool | [isString](#a1c2f546afd23f3a2397c980f841b0da9) (const std::string) const |
| bool | [isInt](#a07cc9f6ac86cf32a8d659b7f9bb5cc1f) (const std::string) const |
| bool | [isDouble](#a24256035b7e17bf21c999fc088f089c1) (const std::string) const |
| std::string | [getValue](#a6d11da0c0558c56dcb8ab1b6f000be9a) (const std::string) const |
| std::vector\< std::string > | [getValueVector](#a525917fc5dc036a53aa759b8a960c15e) (const std::string) const |
| int | [getValueInt](#ac77873f44d17d640e18bbc5948c23f33) (const std::string) const |
| double | [getValueDouble](#a87861f638ae754280780c8f230104b8b) (const std::string) const |
| MetaVariableType | [getValueType](#abab0f54e360d03177ef8b3851429706a) (const std::string) const |
| void | [setValue](#aacd269f8408622db2061c364927f4e7b) (const std::string \&pKey, const std::string \&pValue) |
| void | [setValueVector](#ab032628c78a2bd2a22cd0fcacecaafb4) (const std::string \&pKey, const std::vector\< std::string > \&pValue) |
| void | [setValue](#ad2121a0edeb6d864f61d5f230fafc936) (const std::string \&pKey, int pValue) |
| void | [setValue](#ac61a8d01324f5506aa05b4f31add2786) (const std::string \&pKey, double pValue) |
| void | [setValueLink](#a2dbc6fa15cf36f6992a349e51248dbbf) (const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) \&pParent, const std::string \&pKey, const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) \&pTarget) |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) | [getValueLink](#a811e71c2413c0f1a46e27b9d3ec19c7c) (const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) \&pParent, const std::string \&pKey) const |
| bool | [isLink](#a816dec9fe8849410e911f4e7ae382d98) (const std::string \&pKey) const |
| void | [copyAllTo](#a61a6f5d39031a67dc4f5856474fac6ca) ([Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md) \&pTarget) const |
| void | [copyValueTo](#a184457ae2de0ed6d1eb1910c8870408e) (const std::string \&pKey, [Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md) \&pTarget) const |
| std::vector\< std::string > | [getKeys](#a58998f025b033eaca68381643caa9094) () const Return the list of variables in the metadata index. |
| void | [reset](#a01cf56db6f944df2af40d726bef98d29) () |
| | [Metadata](#a635b82bdfa6352e304294be51e0b8031) () |

## Detailed Description

Dictionary of values associated with an [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md).

The metadata index is mapping a variable name to a value and type. Each variable has a single type. The metadata of an [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) is obtained through [Iterator::getMeta()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md#affabcdae62ef0ffe44e5ff877f8b3653) and can be accessed/modified as such

```cpp theme={null}
 it.getMeta().setValue("Temperature",288.)
   it.isDouble() == true
 double t = it.getMeta().getValueDouble("Temperature");
 it.getMeta().setValue("Temperature",288)
   it.isDouble() == false
   it.isInt() == false
 it.getMeta().setValue("Temperature","288")
   it.isString() == true
```

The metadata changes will be saved in the project index at the next [Project::saveProject()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project#a5c10d316ae316b4e77b77707986115d5)

## Constructor & Destructor Documentation

### Metadata()

```cpp theme={null}
ansys::Project::Metadata::Metadata()
```

`inline`

## Member Function Documentation

### copyAllTo()

```cpp theme={null}
void ansys::Project::Metadata::copyAllTo(Metadata & pTarget) const
```

### copyValueTo()

```cpp theme={null}
void ansys::Project::Metadata::copyValueTo(
    const std::string & pKey,
    Metadata & pTarget
) const
```

### getKeys()

```cpp theme={null}
std::vector< std::string > ansys::Project::Metadata::getKeys() const
```

Return the list of variables in the metadata index.

### getValue()

```cpp theme={null}
std::string ansys::Project::Metadata::getValue(const std::string pKey) const
```

### getValueDouble()

```cpp theme={null}
double ansys::Project::Metadata::getValueDouble(const std::string pKey) const
```

### getValueInt()

```cpp theme={null}
int ansys::Project::Metadata::getValueInt(const std::string pKey) const
```

### getValueLink()

```cpp theme={null}
Iterator ansys::Project::Metadata::getValueLink(
    const Iterator & pParent,
    const std::string & pKey
) const
```

### getValueType()

```cpp theme={null}
MetaVariableType ansys::Project::Metadata::getValueType(const std::string pKey) const
```

### getValueVector()

```cpp theme={null}
std::vector< std::string > ansys::Project::Metadata::getValueVector(const std::string pKey) const
```

### hasKey()

```cpp theme={null}
bool ansys::Project::Metadata::hasKey(const std::string pKey) const
```

### isDouble()

```cpp theme={null}
bool ansys::Project::Metadata::isDouble(const std::string pKey) const
```

### isInt()

```cpp theme={null}
bool ansys::Project::Metadata::isInt(const std::string pKey) const
```

### isLink()

```cpp theme={null}
bool ansys::Project::Metadata::isLink(const std::string & pKey) const
```

### isString()

```cpp theme={null}
bool ansys::Project::Metadata::isString(const std::string pKey) const
```

### removeKey()

```cpp theme={null}
bool ansys::Project::Metadata::removeKey(const std::string pKey)
```

### reset()

```cpp theme={null}
void ansys::Project::Metadata::reset()
```

### setValue() \[1/3]

```cpp theme={null}
void ansys::Project::Metadata::setValue(
    const std::string & pKey,
    const std::string & pValue
)
```

### setValue() \[2/3]

```cpp theme={null}
void ansys::Project::Metadata::setValue(
    const std::string & pKey,
    double pValue
)
```

### setValue() \[3/3]

```cpp theme={null}
void ansys::Project::Metadata::setValue(
    const std::string & pKey,
    int pValue
)
```

### setValueLink()

```cpp theme={null}
void ansys::Project::Metadata::setValueLink(
    const Iterator & pParent,
    const std::string & pKey,
    const Iterator & pTarget
)
```

### setValueVector()

```cpp theme={null}
void ansys::Project::Metadata::setValueVector(
    const std::string & pKey,
    const std::vector< std::string > & pValue
)
```
