experimenting with recursive constructor and dataset call
This commit is contained in:
parent
f7d8f0c161
commit
138cac98d1
@ -3,6 +3,7 @@
|
||||
#include <framework/datapool/PoolRawAccess.h>
|
||||
#include <framework/serviceinterface/ServiceInterfaceStream.h>
|
||||
#include <framework/osal/Endiness.h>
|
||||
#include "DataSet.h"
|
||||
|
||||
PoolRawAccess::PoolRawAccess(uint32_t set_id, uint8_t setArrayEntry,
|
||||
DataSetIF* data_set, ReadWriteMode_t setReadWriteMode,
|
||||
@ -15,12 +16,12 @@ PoolRawAccess::PoolRawAccess(uint32_t set_id, uint8_t setArrayEntry,
|
||||
}
|
||||
if(registerVectors == true) {
|
||||
this->read();
|
||||
// DataSet * myDataSetTest = (DataSet *) data_set;
|
||||
// myDataSetTest->read();
|
||||
if(arrayEntry < arraySize - 1) {
|
||||
uint8_t nextArrayEntry = arrayEntry + 1;
|
||||
PoolRawAccess * newPoolRawAccess =
|
||||
new PoolRawAccess(set_id, nextArrayEntry,
|
||||
data_set,setReadWriteMode,true);
|
||||
if(newPoolRawAccess) {};
|
||||
nextPoolRawAccess = new PoolRawAccess(set_id, nextArrayEntry,
|
||||
data_set,setReadWriteMode,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ private:
|
||||
* \brief The information whether the class is read-write or read-only is stored here.
|
||||
*/
|
||||
ReadWriteMode_t readWriteMode;
|
||||
PoolRawAccess * nextPoolRawAccess;
|
||||
static const uint8_t RAW_MAX_SIZE = sizeof(double);
|
||||
protected:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user