fsfw/src/fsfw/datapoollocal/LocalDataSet.cpp

22 lines
729 B
C++
Raw Normal View History

2021-07-13 20:22:54 +02:00
#include "fsfw/datapoollocal/LocalDataSet.h"
2020-10-01 12:05:24 +02:00
#include <cmath>
#include <cstring>
2022-02-02 10:29:30 +01:00
#include "fsfw/datapoollocal/LocalDataPoolManager.h"
#include "fsfw/serialize/SerializeAdapter.h"
2020-10-01 12:05:24 +02:00
LocalDataSet::LocalDataSet(HasLocalDataPoolIF *hkOwner, uint32_t setId,
2022-02-02 10:29:30 +01:00
const size_t maxNumberOfVariables)
: LocalPoolDataSetBase(hkOwner, setId, nullptr, maxNumberOfVariables),
poolVarList(maxNumberOfVariables) {
this->setContainer(poolVarList.data());
2020-10-01 12:05:24 +02:00
}
2022-02-02 10:29:30 +01:00
LocalDataSet::LocalDataSet(sid_t sid, const size_t maxNumberOfVariables)
: LocalPoolDataSetBase(sid, nullptr, maxNumberOfVariables), poolVarList(maxNumberOfVariables) {
this->setContainer(poolVarList.data());
2020-10-01 12:05:24 +02:00
}
LocalDataSet::~LocalDataSet() {}