2020-05-17 01:17:11 +02:00
|
|
|
#include <framework/datapoolglob/GlobalDataPool.h>
|
2020-05-17 23:41:28 +02:00
|
|
|
#include <framework/datapoolglob/GlobalDataSet.h>
|
2020-05-17 01:17:11 +02:00
|
|
|
#include <framework/serviceinterface/ServiceInterfaceStream.h>
|
|
|
|
|
2020-05-17 23:41:28 +02:00
|
|
|
GlobDataSet::GlobDataSet(): DataSetBase() {}
|
2020-05-17 01:17:11 +02:00
|
|
|
|
2020-05-17 23:41:28 +02:00
|
|
|
// Don't do anything with your variables, they are dead already!
|
|
|
|
// (Destructor is already called)
|
|
|
|
GlobDataSet::~GlobDataSet() {}
|
2020-05-17 01:17:11 +02:00
|
|
|
|
|
|
|
ReturnValue_t GlobDataSet::commit(bool valid) {
|
|
|
|
setEntriesValid(valid);
|
|
|
|
setSetValid(valid);
|
|
|
|
return commit();
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GlobDataSet::commit() {
|
2020-05-17 23:41:28 +02:00
|
|
|
return DataSetBase::commit();
|
2020-05-17 01:17:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GlobDataSet::unlockDataPool() {
|
2020-05-17 13:37:50 +02:00
|
|
|
return glob::dataPool.freeDataPoolLock();
|
2020-05-17 01:17:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GlobDataSet::lockDataPool() {
|
2020-05-17 13:37:50 +02:00
|
|
|
return glob::dataPool.lockDataPool();
|
2020-05-17 01:17:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void GlobDataSet::setEntriesValid(bool valid) {
|
2020-05-17 23:41:28 +02:00
|
|
|
for (uint16_t count = 0; count < fillCount; count++) {
|
2020-05-17 01:17:11 +02:00
|
|
|
if (registeredVariables[count]->getReadWriteMode()
|
|
|
|
!= PoolVariableIF::VAR_READ) {
|
|
|
|
registeredVariables[count]->setValid(valid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GlobDataSet::setSetValid(bool valid) {
|
|
|
|
this->valid = valid;
|
|
|
|
}
|
|
|
|
|
2020-05-17 23:41:28 +02:00
|
|
|
|