ansys::Project::Metadata Class Reference
Last update: 16.07.2025Dictionary of values associated with an Iterator. More...
#include "Metadata.hpp"
Public Member Functions | |
| std::vector< std::string > | getKeys () const |
| Return the list of variables in the metadata index. | |
Detailed Description
Dictionary of values associated with an Iterator.
The metadata index is mapping a variable name to a value and type. Each variable has a single type. The metadata of an Iterator is obtained through Iterator::getMeta() 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()