#ifndef SCENARIOPARAMS_H #define SCENARIOPARAMS_H template struct field_t { T value; bool isUpdated; }; typedef struct ScenGenOutput_t { field_t linear; field_t virtualConvex; field_t depth; field_t probeRadius; field_t fieldOfView; field_t startDepth; field_t rxLineNo; field_t rxFocusPointNo; field_t rxLineDaz; field_t rxPointDax; field_t vcMaxTheta; field_t angle; field_t steering; field_t outputWidth; field_t outputHeight; }ScenGenOutput_t; template void update_field(field_t *t, T value) { t->value = value; t->isUpdated = true; } #endif // SCENARIOPARAMS_H