From 29a15e8154d5de81d5dff878f6e54f413f5fe12d Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Wed, 11 Dec 2019 13:03:51 +0100 Subject: [PATCH] commented out functions which will propably not be needed and removed --- datapool/PoolRawAccess.cpp | 22 +++++++++++----------- datapool/PoolRawAccess.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/datapool/PoolRawAccess.cpp b/datapool/PoolRawAccess.cpp index 6be4b7838..c99d80691 100644 --- a/datapool/PoolRawAccess.cpp +++ b/datapool/PoolRawAccess.cpp @@ -3,7 +3,9 @@ #include #include #include -#include "DataSet.h" + +//PoolRawAccess::PoolRawAccess() { +//} PoolRawAccess::PoolRawAccess(uint32_t set_id, uint8_t setArrayEntry, DataSetIF* data_set, ReadWriteMode_t setReadWriteMode, @@ -14,16 +16,14 @@ PoolRawAccess::PoolRawAccess(uint32_t set_id, uint8_t setArrayEntry, if (data_set != NULL) { data_set->registerVariable(this); } - if(registerVectors == true) { - this->read(); -// DataSet * myDataSetTest = (DataSet *) data_set; -// myDataSetTest->read(); - if(arrayEntry < arraySize - 1) { - uint8_t nextArrayEntry = arrayEntry + 1; - nextPoolRawAccess = new PoolRawAccess(set_id, nextArrayEntry, - data_set,setReadWriteMode,true); - } - } +// if(registerVectors == true) { +// this->read(); +// if(arrayEntry < arraySize - 1) { +// uint8_t nextArrayEntry = arrayEntry + 1; +// nextPoolRawAccess = new PoolRawAccess(set_id, nextArrayEntry, +// data_set,setReadWriteMode,true); +// } +// } } PoolRawAccess::~PoolRawAccess() { diff --git a/datapool/PoolRawAccess.h b/datapool/PoolRawAccess.h index ac7d6702f..7207518cc 100644 --- a/datapool/PoolRawAccess.h +++ b/datapool/PoolRawAccess.h @@ -50,7 +50,7 @@ private: * \brief The information whether the class is read-write or read-only is stored here. */ ReadWriteMode_t readWriteMode; - PoolRawAccess * nextPoolRawAccess; + //PoolRawAccess * nextPoolRawAccess; static const uint8_t RAW_MAX_SIZE = sizeof(double); protected: /** @@ -79,7 +79,7 @@ public: static const ReturnValue_t INCORRECT_SIZE = MAKE_RETURN_CODE(0x01); static const ReturnValue_t DATA_POOL_ACCESS_FAILED = MAKE_RETURN_CODE(0x02); uint8_t value[RAW_MAX_SIZE]; - + //PoolRawAccess(); /** * This constructor is used to access a data pool entry with a * given ID if the target type is not known. A DataSet object is supplied