    

 ## On this page

  

 

 # ansys::Project::Metadata Class Reference

 Last update: 16.07.2025 

Dictionary of values associated with an [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location."). [More...](classansys_1_1_project_1_1_metadata.xhtml#details)

`#include "<a class="el" href="_metadata_8hpp_source.xhtml">Metadata.hpp</a>"`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a58998f025b033eaca68381643caa9094" name="a58998f025b033eaca68381643caa9094"></a>std::vector&lt; std::string &gt; **getKeys** () const Return the list of variables in the metadata index.   
 <a id="details" name="details"></a>## Detailed Description

Dictionary of values associated with an [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.").

The metadata index is mapping a variable name to a value and type. Each variable has a single type. The metadata of an [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") is obtained through [Iterator::getMeta()](classansys_1_1_project_1_1_iterator.xhtml#affabcdae62ef0ffe44e5ff877f8b3653 "Returns the Metadata for this project item.") and can be accessed/modified as such

```
 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()](classansys_1_1_project_1_1_project.xhtml#a5c10d316ae316b4e77b77707986115d5 "Save the currently opened project.")