#include "IdfObject.hpp" IdfObject myObject("ObjectType", "ObjectName");
myObject.setString(FieldName, Value); myObject.setDouble(FieldName, Value); myObject.setInt(FieldName, Value);
std::string value = myObject.getString(FieldName); double value = myObject.getDouble(FieldName); int value = myObject.getInt(FieldName);These functions retrieve the value of a specific field on the IdfObject. The argument is the name of the field. Package library: EnergyPlus (https://github.com/NREL/EnergyPlus)