eive-obsw/mission/tmtc/PersistentSingleTmStoreTask.h

25 lines
878 B
C
Raw Normal View History

2023-03-09 17:44:05 +01:00
#ifndef MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_
#define MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_
#include <fsfw/objectmanager/SystemObject.h>
#include <fsfw/tasks/ExecutableObjectIF.h>
#include <mission/tmtc/PersistentTmStoreWithTmQueue.h>
2023-03-09 19:42:20 +01:00
#include <mission/tmtc/TmStoreTaskBase.h>
2023-03-09 17:44:05 +01:00
#include <mission/tmtc/VirtualChannel.h>
2023-03-09 19:42:20 +01:00
class PersistentSingleTmStoreTask : public TmStoreTaskBase, public ExecutableObjectIF {
2023-03-09 17:44:05 +01:00
public:
PersistentSingleTmStoreTask(object_id_t objectId, StorageManagerIF& ipcStore,
PersistentTmStoreWithTmQueue& storeWithQueue, VirtualChannel& channel,
SdCardMountedIF& sdcMan);
2023-03-09 17:44:05 +01:00
ReturnValue_t performOperation(uint8_t opCode) override;
private:
PersistentTmStoreWithTmQueue& storeWithQueue;
void initStoresIfPossible();
2023-03-09 17:44:05 +01:00
};
#endif /* MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_ */