#ifndef SCENARIOPARAMS_H #define SCENARIOPARAMS_H #include 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 probeFieldOfView; 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 minScanAx; field_t minScanAz; field_t maxScanAx; field_t virtualOriginalZ; field_t outputWidth; field_t outputHeight; field_t compressionType; field_t dynContSelector; field_t dynContGain; field_t grayMapSelector; field_t tintMapSelector; field_t sri; field_t rejectThreshold; }ScenGenOutput_t; template void update_field(field_t *t, T value) { t->value = value; t->isUpdated = true; } #endif // SCENARIOPARAMS_H