Robin Mueller
97698a08d5
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
28 lines
1007 B
C++
28 lines
1007 B
C++
#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>
|
|
#include <mission/tmtc/TmStoreTaskBase.h>
|
|
#include <mission/tmtc/VirtualChannel.h>
|
|
|
|
class PersistentSingleTmStoreTask : public TmStoreTaskBase, public ExecutableObjectIF {
|
|
public:
|
|
PersistentSingleTmStoreTask(object_id_t objectId, StorageManagerIF& ipcStore,
|
|
PersistentTmStoreWithTmQueue& storeWithQueue, VirtualChannel& channel,
|
|
Event eventIfDumpDone, SdCardMountedIF& sdcMan);
|
|
|
|
ReturnValue_t performOperation(uint8_t opCode) override;
|
|
|
|
private:
|
|
PersistentTmStoreWithTmQueue& storeWithQueue;
|
|
Event eventIfDumpDone;
|
|
uint32_t numberOfDumpedPackets = 0;
|
|
Countdown tcHandlingCd = Countdown(400);
|
|
|
|
bool initStoresIfPossible();
|
|
};
|
|
|
|
#endif /* MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_ */
|