hopefully this fixes circular includes
This commit is contained in:
parent
3242264a77
commit
71a12792a9
@ -1,19 +1,9 @@
|
|||||||
#ifndef FSFW_DATAPOOLLOCAL_HASLOCALDATAPOOLIFATTORNEY_H_
|
#ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_
|
||||||
#define FSFW_DATAPOOLLOCAL_HASLOCALDATAPOOLIFATTORNEY_H_
|
#define FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_
|
||||||
|
|
||||||
#include <fsfw/datapoollocal/LocalDataPoolManager.h>
|
#include "HasLocalDataPoolIF.h"
|
||||||
|
|
||||||
class HasLocalDpIFUserAttorney {
|
class LocalPoolDataSetBase;
|
||||||
private:
|
|
||||||
|
|
||||||
static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* interface) {
|
|
||||||
return interface->getAccessorHandle();
|
|
||||||
}
|
|
||||||
|
|
||||||
friend class LocalPoolObjectBase;
|
|
||||||
friend class LocalPoolDataSetBase;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class HasLocalDpIFManagerAttorney {
|
class HasLocalDpIFManagerAttorney {
|
||||||
|
|
||||||
@ -33,6 +23,4 @@ class HasLocalDpIFManagerAttorney {
|
|||||||
friend class LocalDataPoolManager;
|
friend class LocalDataPoolManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_ */
|
||||||
|
|
||||||
#endif /* FSFW_DATAPOOLLOCAL_HASLOCALDATAPOOLIFATTORNEY_H_ */
|
|
20
datapoollocal/HasLocalDpIFUserAttorney.h
Normal file
20
datapoollocal/HasLocalDpIFUserAttorney.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_
|
||||||
|
#define FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_
|
||||||
|
|
||||||
|
class AccessPoolManagerIF;
|
||||||
|
class HasLocalDataPoolIF;
|
||||||
|
|
||||||
|
class HasLocalDpIFUserAttorney {
|
||||||
|
private:
|
||||||
|
|
||||||
|
static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* interface) {
|
||||||
|
return interface->getAccessorHandle();
|
||||||
|
}
|
||||||
|
|
||||||
|
friend class LocalPoolObjectBase;
|
||||||
|
friend class LocalPoolDataSetBase;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_ */
|
@ -1,7 +1,7 @@
|
|||||||
|
#include <fsfw/datapoollocal/HasLocalDpIFManagerAttorney.h>
|
||||||
#include "LocalDataPoolManager.h"
|
#include "LocalDataPoolManager.h"
|
||||||
#include "LocalPoolObjectBase.h"
|
#include "LocalPoolObjectBase.h"
|
||||||
#include "LocalPoolDataSetBase.h"
|
#include "LocalPoolDataSetBase.h"
|
||||||
#include "HasLocalDataPoolIFAttorney.h"
|
|
||||||
#include "LocalPoolDataSetAttorney.h"
|
#include "LocalPoolDataSetAttorney.h"
|
||||||
|
|
||||||
#include "../housekeeping/HousekeepingPacketUpdate.h"
|
#include "../housekeeping/HousekeepingPacketUpdate.h"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "LocalPoolDataSetBase.h"
|
#include "LocalPoolDataSetBase.h"
|
||||||
#include "HasLocalDataPoolIFAttorney.h"
|
#include "HasLocalDataPoolIF.h"
|
||||||
|
#include "HasLocalDpIFUserAttorney.h"
|
||||||
|
|
||||||
#include "../serviceinterface/ServiceInterface.h"
|
#include "../serviceinterface/ServiceInterface.h"
|
||||||
#include "../datapoollocal/LocalDataPoolManager.h"
|
#include "../datapoollocal/LocalDataPoolManager.h"
|
||||||
@ -50,9 +51,6 @@ LocalPoolDataSetBase::LocalPoolDataSetBase(sid_t sid,
|
|||||||
mutexIfSingleDataCreator = hkOwner->getLocalPoolMutex();
|
mutexIfSingleDataCreator = hkOwner->getLocalPoolMutex();
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(hkManager != nullptr) {
|
|
||||||
// mutexIfSingleDataCreator = hkManager->getMutexHandle();
|
|
||||||
//}
|
|
||||||
this->sid = sid;
|
this->sid = sid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
#ifndef FSFW_DATAPOOLLOCAL_LOCALPOOLDATASETBASE_H_
|
#ifndef FSFW_DATAPOOLLOCAL_LOCALPOOLDATASETBASE_H_
|
||||||
#define FSFW_DATAPOOLLOCAL_LOCALPOOLDATASETBASE_H_
|
#define FSFW_DATAPOOLLOCAL_LOCALPOOLDATASETBASE_H_
|
||||||
|
|
||||||
#include "HasLocalDataPoolIF.h"
|
|
||||||
#include "MarkChangedIF.h"
|
#include "MarkChangedIF.h"
|
||||||
|
|
||||||
|
#include "../datapoollocal/locPoolDefinitions.h"
|
||||||
#include "../datapool/DataSetIF.h"
|
#include "../datapool/DataSetIF.h"
|
||||||
#include "../datapool/PoolDataSetBase.h"
|
#include "../datapool/PoolDataSetBase.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class LocalDataPoolManager;
|
class LocalDataPoolManager;
|
||||||
|
class HasLocalDataPoolIF;
|
||||||
class PeriodicHousekeepingHelper;
|
class PeriodicHousekeepingHelper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -42,7 +43,6 @@ class PeriodicHousekeepingHelper;
|
|||||||
*/
|
*/
|
||||||
class LocalPoolDataSetBase: public PoolDataSetBase,
|
class LocalPoolDataSetBase: public PoolDataSetBase,
|
||||||
public MarkChangedIF {
|
public MarkChangedIF {
|
||||||
//friend class LocalDataPoolManager;
|
|
||||||
friend class LocalPoolDataSetAttorney;
|
friend class LocalPoolDataSetAttorney;
|
||||||
friend class PeriodicHousekeepingHelper;
|
friend class PeriodicHousekeepingHelper;
|
||||||
public:
|
public:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
#include "LocalDataPoolManager.h"
|
||||||
#include "LocalPoolObjectBase.h"
|
#include "LocalPoolObjectBase.h"
|
||||||
#include "HasLocalDataPoolIFAttorney.h"
|
#include "HasLocalDpIFUserAttorney.h"
|
||||||
|
|
||||||
LocalPoolObjectBase::LocalPoolObjectBase(lp_id_t poolId, HasLocalDataPoolIF* hkOwner,
|
LocalPoolObjectBase::LocalPoolObjectBase(lp_id_t poolId, HasLocalDataPoolIF* hkOwner,
|
||||||
DataSetIF* dataSet, pool_rwm_t setReadWriteMode):
|
DataSetIF* dataSet, pool_rwm_t setReadWriteMode):
|
||||||
@ -19,7 +20,7 @@ LocalPoolObjectBase::LocalPoolObjectBase(lp_id_t poolId, HasLocalDataPoolIF* hkO
|
|||||||
}
|
}
|
||||||
AccessPoolManagerIF* poolManAccessor = HasLocalDpIFUserAttorney::getAccessorHandle(hkOwner);
|
AccessPoolManagerIF* poolManAccessor = HasLocalDpIFUserAttorney::getAccessorHandle(hkOwner);
|
||||||
hkManager = poolManAccessor->getHkManagerHandle();
|
hkManager = poolManAccessor->getHkManagerHandle();
|
||||||
//HasLohkOwner->getHkManagerHandle();
|
|
||||||
if (dataSet != nullptr) {
|
if (dataSet != nullptr) {
|
||||||
dataSet->registerVariable(this);
|
dataSet->registerVariable(this);
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,14 @@
|
|||||||
#define FSFW_DATAPOOLLOCAL_LOCALPOOLOBJECTBASE_H_
|
#define FSFW_DATAPOOLLOCAL_LOCALPOOLOBJECTBASE_H_
|
||||||
|
|
||||||
#include "MarkChangedIF.h"
|
#include "MarkChangedIF.h"
|
||||||
#include "../datapoollocal/LocalDataPoolManager.h"
|
#include "../datapoollocal/locPoolDefinitions.h"
|
||||||
|
#include "../objectmanager/SystemObjectIF.h"
|
||||||
#include "../datapool/PoolVariableIF.h"
|
#include "../datapool/PoolVariableIF.h"
|
||||||
|
#include "../returnvalues/HasReturnvaluesIF.h"
|
||||||
|
|
||||||
|
class LocalDataPoolManager;
|
||||||
|
class DataSetIF;
|
||||||
|
class HasLocalDataPoolIF;
|
||||||
|
|
||||||
class LocalPoolObjectBase: public PoolVariableIF,
|
class LocalPoolObjectBase: public PoolVariableIF,
|
||||||
public HasReturnvaluesIF,
|
public HasReturnvaluesIF,
|
||||||
|
Loading…
Reference in New Issue
Block a user