source files for attorney

This commit is contained in:
Robin Müller 2021-01-12 20:15:15 +01:00
parent 0643faf0e5
commit fa636fded5
4 changed files with 31 additions and 15 deletions

View File

@ -0,0 +1,18 @@
#include "HasLocalDpIFManagerAttorney.h"
#include "LocalPoolObjectBase.h"
#include "LocalPoolDataSetBase.h"
#include "HasLocalDataPoolIF.h"
LocalPoolDataSetBase* HasLocalDpIFManagerAttorney::getDataSetHandle(HasLocalDataPoolIF* interface,
sid_t sid) {
return interface->getDataSetHandle(sid);
}
LocalPoolObjectBase* HasLocalDpIFManagerAttorney::getPoolObjectHandle(HasLocalDataPoolIF* interface,
lp_id_t localPoolId) {
return interface->getPoolObjectHandle(localPoolId);
}
object_id_t HasLocalDpIFManagerAttorney::getObjectId(HasLocalDataPoolIF* interface) {
return interface->getObjectId();
}

View File

@ -1,25 +1,20 @@
#ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_ #ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_
#define FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_ #define FSFW_DATAPOOLLOCAL_HASLOCALDPIFMANAGERATTORNEY_H_
#include "HasLocalDataPoolIF.h" #include "localPoolDefinitions.h"
class HasLocalDataPoolIF;
class LocalPoolDataSetBase; class LocalPoolDataSetBase;
class LocalPoolObjectBase; class LocalPoolObjectBase;
class HasLocalDpIFManagerAttorney { class HasLocalDpIFManagerAttorney {
static LocalPoolDataSetBase* getDataSetHandle(HasLocalDataPoolIF* interface, sid_t sid) { static LocalPoolDataSetBase* getDataSetHandle(HasLocalDataPoolIF* interface, sid_t sid);
return interface->getDataSetHandle(sid);
}
static LocalPoolObjectBase* getPoolObjectHandle(HasLocalDataPoolIF* interface, static LocalPoolObjectBase* getPoolObjectHandle(HasLocalDataPoolIF* interface,
lp_id_t localPoolId) { lp_id_t localPoolId);
return interface->getPoolObjectHandle(localPoolId);
}
static object_id_t getObjectId(HasLocalDataPoolIF* interface) { static object_id_t getObjectId(HasLocalDataPoolIF* interface);
return interface->getObjectId();
}
friend class LocalDataPoolManager; friend class LocalDataPoolManager;
}; };

View File

@ -0,0 +1,6 @@
#include "HasLocalDpIFUserAttorney.h"
#include "HasLocalDataPoolIF.h"
AccessPoolManagerIF* HasLocalDpIFUserAttorney::getAccessorHandle(HasLocalDataPoolIF *interface) {
return interface->getAccessorHandle();
}

View File

@ -1,16 +1,13 @@
#ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_ #ifndef FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_
#define FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_ #define FSFW_DATAPOOLLOCAL_HASLOCALDPIFUSERATTORNEY_H_
#include "HasLocalDataPoolIF.h" class HasLocalDataPoolIF;
class AccessPoolManagerIF; class AccessPoolManagerIF;
class HasLocalDpIFUserAttorney { class HasLocalDpIFUserAttorney {
private: private:
static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* interface) { static AccessPoolManagerIF* getAccessorHandle(HasLocalDataPoolIF* interface);
return interface->getAccessorHandle();
}
friend class LocalPoolObjectBase; friend class LocalPoolObjectBase;
friend class LocalPoolDataSetBase; friend class LocalPoolDataSetBase;