indentation consistent now
This commit is contained in:
parent
2e456cebb7
commit
5710f3824a
@ -4,15 +4,15 @@
|
|||||||
#include "../HasLocalDataPoolIF.h"
|
#include "../HasLocalDataPoolIF.h"
|
||||||
|
|
||||||
LocalPoolDataSetBase* HasLocalDpIFManagerAttorney::getDataSetHandle(HasLocalDataPoolIF* clientIF,
|
LocalPoolDataSetBase* HasLocalDpIFManagerAttorney::getDataSetHandle(HasLocalDataPoolIF* clientIF,
|
||||||
sid_t sid) {
|
sid_t sid) {
|
||||||
return clientIF->getDataSetHandle(sid);
|
return clientIF->getDataSetHandle(sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
LocalPoolObjectBase* HasLocalDpIFManagerAttorney::getPoolObjectHandle(HasLocalDataPoolIF* clientIF,
|
LocalPoolObjectBase* HasLocalDpIFManagerAttorney::getPoolObjectHandle(HasLocalDataPoolIF* clientIF,
|
||||||
lp_id_t localPoolId) {
|
lp_id_t localPoolId) {
|
||||||
return clientIF->getPoolObjectHandle(localPoolId);
|
return clientIF->getPoolObjectHandle(localPoolId);
|
||||||
}
|
}
|
||||||
|
|
||||||
object_id_t HasLocalDpIFManagerAttorney::getObjectId(HasLocalDataPoolIF* clientIF) {
|
object_id_t HasLocalDpIFManagerAttorney::getObjectId(HasLocalDataPoolIF* clientIF) {
|
||||||
return clientIF->getObjectId();
|
return clientIF->getObjectId();
|
||||||
}
|
}
|
||||||
|
@ -9,14 +9,14 @@ class LocalPoolObjectBase;
|
|||||||
|
|
||||||
class HasLocalDpIFManagerAttorney {
|
class HasLocalDpIFManagerAttorney {
|
||||||
|
|
||||||
static LocalPoolDataSetBase* getDataSetHandle(HasLocalDataPoolIF* clientIF, sid_t sid);
|
static LocalPoolDataSetBase* getDataSetHandle(HasLocalDataPoolIF* clientIF, sid_t sid);
|
||||||
|
|
||||||
static LocalPoolObjectBase* getPoolObjectHandle(HasLocalDataPoolIF* clientIF,
|
static LocalPoolObjectBase* getPoolObjectHandle(HasLocalDataPoolIF* clientIF,
|
||||||
lp_id_t localPoolId);
|
lp_id_t localPoolId);
|
||||||
|
|
||||||
static object_id_t getObjectId(HasLocalDataPoolIF* clientIF);
|
static object_id_t getObjectId(HasLocalDataPoolIF* clientIF);
|
||||||
|
|
||||||
friend class LocalDataPoolManager;
|
friend class LocalDataPoolManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_ */
|
#endif /* FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_ */
|
||||||
|
@ -7,10 +7,10 @@ class AccessPoolManagerIF;
|
|||||||
class HasLocalDpIFUserAttorney {
|
class HasLocalDpIFUserAttorney {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* clientIF);
|
static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* clientIF);
|
||||||
|
|
||||||
friend class LocalPoolObjectBase;
|
friend class LocalPoolObjectBase;
|
||||||
friend class LocalPoolDataSetBase;
|
friend class LocalPoolDataSetBase;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,18 +15,18 @@
|
|||||||
*/
|
*/
|
||||||
class LocalDpManagerAttorney {
|
class LocalDpManagerAttorney {
|
||||||
private:
|
private:
|
||||||
template<typename T> static ReturnValue_t fetchPoolEntry(LocalDataPoolManager& manager,
|
template<typename T> static ReturnValue_t fetchPoolEntry(LocalDataPoolManager& manager,
|
||||||
lp_id_t localPoolId, PoolEntry<T> **poolEntry) {
|
lp_id_t localPoolId, PoolEntry<T> **poolEntry) {
|
||||||
return manager.fetchPoolEntry(localPoolId, poolEntry);
|
return manager.fetchPoolEntry(localPoolId, poolEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
static MutexIF* getMutexHandle(LocalDataPoolManager& manager) {
|
static MutexIF* getMutexHandle(LocalDataPoolManager& manager) {
|
||||||
return manager.getMutexHandle();
|
return manager.getMutexHandle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<typename T> friend class LocalPoolVariable;
|
template<typename T> friend class LocalPoolVariable;
|
||||||
template<typename T, uint16_t vecSize> friend class LocalPoolVector;
|
template<typename T, uint16_t vecSize> friend class LocalPoolVector;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FSFW_DATAPOOLLOCAL_LOCALDPMANAGERATTORNEY_H_ */
|
#endif /* FSFW_DATAPOOLLOCAL_LOCALDPMANAGERATTORNEY_H_ */
|
||||||
|
@ -5,34 +5,34 @@
|
|||||||
|
|
||||||
class LocalPoolDataSetAttorney {
|
class LocalPoolDataSetAttorney {
|
||||||
private:
|
private:
|
||||||
static void setDiagnostic(LocalPoolDataSetBase& set, bool diagnostics) {
|
static void setDiagnostic(LocalPoolDataSetBase& set, bool diagnostics) {
|
||||||
set.setDiagnostic(diagnostics);
|
set.setDiagnostic(diagnostics);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isDiagnostics(LocalPoolDataSetBase& set) {
|
static bool isDiagnostics(LocalPoolDataSetBase& set) {
|
||||||
return set.isDiagnostics();
|
return set.isDiagnostics();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializePeriodicHelper(LocalPoolDataSetBase& set, float collectionInterval,
|
static void initializePeriodicHelper(LocalPoolDataSetBase& set, float collectionInterval,
|
||||||
uint32_t minimumPeriodicIntervalMs,
|
uint32_t minimumPeriodicIntervalMs,
|
||||||
bool isDiagnostics, uint8_t nonDiagIntervalFactor = 5) {
|
bool isDiagnostics, uint8_t nonDiagIntervalFactor = 5) {
|
||||||
set.initializePeriodicHelper(collectionInterval, minimumPeriodicIntervalMs, isDiagnostics,
|
set.initializePeriodicHelper(collectionInterval, minimumPeriodicIntervalMs, isDiagnostics,
|
||||||
nonDiagIntervalFactor);
|
nonDiagIntervalFactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setReportingEnabled(LocalPoolDataSetBase& set, bool enabled) {
|
static void setReportingEnabled(LocalPoolDataSetBase& set, bool enabled) {
|
||||||
set.setReportingEnabled(enabled);
|
set.setReportingEnabled(enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool getReportingEnabled(LocalPoolDataSetBase& set) {
|
static bool getReportingEnabled(LocalPoolDataSetBase& set) {
|
||||||
return set.getReportingEnabled();
|
return set.getReportingEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
static PeriodicHousekeepingHelper* getPeriodicHelper(LocalPoolDataSetBase& set) {
|
static PeriodicHousekeepingHelper* getPeriodicHelper(LocalPoolDataSetBase& set) {
|
||||||
return set.periodicHelper;
|
return set.periodicHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
friend class LocalDataPoolManager;
|
friend class LocalDataPoolManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user