#ifndef FSFW_DATAPOOL_POOLVARLIST_H_ #define FSFW_DATAPOOL_POOLVARLIST_H_ #include "../datapool/PoolVariableIF.h" #include "../datapoolglob/GlobalPoolVariable.h" template class PoolVarList { private: GlobPoolVar variables[n_var]; public: PoolVarList( const uint32_t set_id[n_var], DataSetIF* dataSet, PoolVariableIF::ReadWriteMode_t setReadWriteMode ) { //I really should have a look at the new init list c++ syntax. if (dataSet == NULL) { return; } for (uint8_t count = 0; count < n_var; count++) { variables[count].dataPoolId = set_id[count]; variables[count].readWriteMode = setReadWriteMode; dataSet->registerVariable(&variables[count]); } } GlobPoolVar &operator [](int i) { return variables[i]; } }; #endif /* FSFW_DATAPOOL_POOLVARLIST_H_ */