reverted some stuff

This commit is contained in:
Robin Müller 2021-01-11 22:18:42 +01:00
parent 037bd83af9
commit 5bc46bae02
6 changed files with 21 additions and 15 deletions

View File

@ -3,6 +3,7 @@
#include "PoolDataSetIF.h"
#include "PoolVariableIF.h"
#include "../serialize/SerializeIF.h"
#include "../ipc/MutexIF.h"
/**

View File

@ -4,14 +4,18 @@
#include <fsfw/datapoollocal/LocalDataPoolManager.h>
class AccessLocalDataPoolIF {
public:
virtual ~AccessLocalDataPoolIF() {};
protected:
virtual LocalDataPoolManager* getHkManagerHandle() = 0;
};
//class AccessLocalDataPoolIF {
//public:
// virtual ~AccessLocalDataPoolIF() {};
//
//protected:
//
// template <class T> ReturnValue_t fetchPoolEntry(LocalDataPoolManager& manager,
// lp_id_t localPoolId, PoolEntry<T> **poolEntry) {
// return manager.fetchPoolEntry(localPoolId, poolEntry);
// }
//
//};
#endif /* FSFW_DATAPOOLLOCAL_ACCESSLOCALDATAPOOLIF_H_ */

View File

@ -42,8 +42,8 @@ using LocalDataPoolMapIter = LocalDataPool::iterator;
*/
class HasLocalDataPoolIF {
friend class LocalDataPoolManager;
//friend class LocalPoolDataSetBase;
//friend class LocalPoolObjectBase;
friend class LocalPoolDataSetBase;
friend class LocalPoolObjectBase;
public:
virtual~ HasLocalDataPoolIF() {};

View File

@ -17,6 +17,7 @@
#include "../ipc/MutexHelper.h"
#include <map>
#include <vector>
namespace Factory {
void setStaticFrameworkObjectIds();
@ -53,6 +54,7 @@ class LocalDataPoolManager: public ProvidesDataPoolSubscriptionIF {
template<typename T> friend class LocalPoolVariable;
template<typename T, uint16_t vecSize> friend class LocalPoolVector;
friend class LocalPoolDataSetBase;
//friend class AccessLocalDataPoolIF;
friend void (Factory::setStaticFrameworkObjectIds)();

View File

@ -8,7 +8,7 @@
#include <cmath>
#include <cstring>
LocalPoolDataSetBase::LocalPoolDataSetBase(AccessLocalDataPoolIF *hkOwner,
LocalPoolDataSetBase::LocalPoolDataSetBase(HasLocalDataPoolIF *hkOwner,
uint32_t setId, PoolVariableIF** registeredVariablesArray,
const size_t maxNumberOfVariables, bool periodicHandling):
PoolDataSetBase(registeredVariablesArray, maxNumberOfVariables) {

View File

@ -43,8 +43,7 @@ class PeriodicHousekeepingHelper;
* @ingroup data_pool
*/
class LocalPoolDataSetBase: public PoolDataSetBase,
public MarkChangedIF,
public AccessLocalDataPoolIF {
public MarkChangedIF {
friend class LocalDataPoolManager;
friend class PeriodicHousekeepingHelper;
public:
@ -54,7 +53,7 @@ public:
* This constructor also initializes the components required for
* periodic handling.
*/
LocalPoolDataSetBase(AccessLocalDataPoolIF *hkOwner,
LocalPoolDataSetBase(HasLocalDataPoolIF *hkOwner,
uint32_t setId, PoolVariableIF** registeredVariablesArray,
const size_t maxNumberOfVariables, bool periodicHandling = true);
@ -220,7 +219,7 @@ protected:
bool bitGetter(const uint8_t* byte, uint8_t position) const;
PeriodicHousekeepingHelper* periodicHelper = nullptr;
AccessLocalDataPoolIF* hkManager = nullptr;
LocalDataPoolManager* hkManager = nullptr;
};