improvements
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#ifndef PLATFORM_TMTCSERVICES_TMSTOREBACKENDIF_H_
|
||||
#define PLATFORM_TMTCSERVICES_TMSTOREBACKENDIF_H_
|
||||
#ifndef FSFW_TMTCSERVICES_TMSTOREBACKENDIF_H_
|
||||
#define FSFW_TMTCSERVICES_TMSTOREBACKENDIF_H_
|
||||
|
||||
#include "../returnvalues/HasReturnvaluesIF.h"
|
||||
#include "../objectmanager/SystemObjectIF.h"
|
||||
@ -49,14 +49,33 @@ public:
|
||||
static const Event AUTO_CATALOGS_SENDING_FAILED = MAKE_EVENT(15, severity::INFO);//!< Info that the a auto catalog report failed
|
||||
|
||||
virtual ~TmStoreBackendIF() {}
|
||||
|
||||
/**
|
||||
* SHOULDDO: Specification on what has to be implemented here
|
||||
* @param opCode
|
||||
* @return
|
||||
*/
|
||||
virtual ReturnValue_t performOperation(uint8_t opCode) = 0;
|
||||
virtual ReturnValue_t initialize() = 0;
|
||||
|
||||
/**
|
||||
* Implement the storage of TM packets to mass memory
|
||||
* @param tmPacket
|
||||
* @return
|
||||
*/
|
||||
virtual ReturnValue_t storePacket(TmPacketMinimal* tmPacket) = 0;
|
||||
virtual ReturnValue_t setFetchLimitTime(const timeval* loverLimit, const timeval* upperLimit) = 0;
|
||||
virtual ReturnValue_t setFetchLimitBlocks(uint32_t startAddress, uint32_t endAddress) = 0;
|
||||
virtual ReturnValue_t fetchPackets(bool fromBegin = false) = 0;
|
||||
virtual ReturnValue_t initializeStore(object_id_t dumpTarget) = 0;
|
||||
virtual ReturnValue_t dumpIndex(store_address_t* storeId) = 0;
|
||||
|
||||
/**
|
||||
* SHOULDDO: Adapt for file management system?
|
||||
* @param startAddress
|
||||
* @param endAddress
|
||||
* @return
|
||||
*/
|
||||
virtual ReturnValue_t deleteBlocks(uint32_t startAddress, uint32_t endAddress) = 0;
|
||||
virtual ReturnValue_t deleteTime(const timeval* timeUntil,
|
||||
uint32_t* deletedPackets) = 0;
|
||||
@ -73,4 +92,4 @@ public:
|
||||
|
||||
|
||||
|
||||
#endif /* PLATFORM_TMTCSERVICES_TMSTOREBACKENDIF_H_ */
|
||||
#endif /* FSFW_TMTCSERVICES_TMSTOREBACKENDIF_H_ */
|
||||
|
Reference in New Issue
Block a user