Skip to main content

Common Fluids Format 2023 R2

ansys::Project::Metadata Class Reference

Last update: 16.07.2025

Dictionary 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()

Connect with Ansys