contd file system handler

This commit is contained in:
2021-07-08 12:32:24 +02:00
committed by Robin Mueller
parent ef3fb0457e
commit d5517b4d80
2 changed files with 48 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#ifndef BSP_Q7S_MEMORY_FILESYSTEMHANDLER_H_
#define BSP_Q7S_MEMORY_FILESYSTEMHANDLER_H_
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/tasks/ExecutableObjectIF.h"
#include "fsfw/objectmanager/SystemObject.h"
#include "fsfw/memory/HasFileSystemIF.h"
@ -10,6 +11,7 @@ class FileSystemHandler: public SystemObject,
public HasFileSystemIF {
public:
FileSystemHandler(object_id_t fileSystemHandler);
virtual~ FileSystemHandler();
ReturnValue_t performOperation(uint8_t) override;
@ -17,9 +19,10 @@ public:
* Function to get the MessageQueueId_t of the implementing object
* @return MessageQueueId_t of the object
*/
virtual MessageQueueId_t getCommandQueue() const = 0;
MessageQueueId_t getCommandQueue() const override;
private:
MessageQueueIF* mq = nullptr;
ReturnValue_t appendToFile(const char* repositoryPath,
const char* filename, const uint8_t* data, size_t size,