the C++ tooling is shit

This commit is contained in:
Robin Müller 2023-06-30 11:48:25 +02:00
parent 7add782470
commit 1be09a2310
Signed by: muellerr
GPG Key ID: A649FB78196E3849
4 changed files with 27 additions and 10 deletions

8
.idea/cmake.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSharedSettings">
<configurations>
<configuration PROFILE_NAME="Debug Test" ENABLED="true" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON" NO_GENERATOR="true" />
</configurations>
</component>
</project>

View File

@ -61,8 +61,8 @@ struct DestHandlerParams {
size_t maxFilenameLen = 255; size_t maxFilenameLen = 255;
}; };
struct FsfwParams { struct FsfwDestParams {
FsfwParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue, FsfwDestParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
EventReportingProxyIF* eventReporter, StorageManagerIF& tcStore, EventReportingProxyIF* eventReporter, StorageManagerIF& tcStore,
StorageManagerIF& tmStore) StorageManagerIF& tmStore)
: FsfwParams(packetDest, msgQueue, eventReporter) { : FsfwParams(packetDest, msgQueue, eventReporter) {
@ -70,7 +70,7 @@ struct FsfwParams {
this->tmStore = &tmStore; this->tmStore = &tmStore;
} }
FsfwParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue, FsfwDestParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
EventReportingProxyIF* eventReporter) EventReportingProxyIF* eventReporter)
: packetDest(packetDest), msgQueue(msgQueue), eventReporter(eventReporter) {} : packetDest(packetDest), msgQueue(msgQueue), eventReporter(eventReporter) {}
AcceptsTelemetryIF& packetDest; AcceptsTelemetryIF& packetDest;

View File

@ -1,4 +1,3 @@
#include "SourceHandler.h" #include "SourceHandler.h"
SourceHandler::SourceHandler(SourceHandlerParams params) { SourceHandler::SourceHandler(SourceHandlerParams params) {}
}

View File

@ -1,14 +1,24 @@
#ifndef FSFW_CFDP_CFDPSOURCEHANDLER_H #ifndef FSFW_CFDP_CFDPSOURCEHANDLER_H
#define FSFW_CFDP_CFDPSOURCEHANDLER_H #define FSFW_CFDP_CFDPSOURCEHANDLER_H
struct SourceHandlerParams { struct SourceHandlerParams {};
};
class SourceHandler { class SourceHandler {
public: public:
SourceHandler(SourceHandlerParams params); SourceHandler(SourceHandlerParams params);
private: private:
enum class TransactionStep : uint8_t {
IDLE = 0,
TRANSACTION_START = 1,
CRC_PROCEDURE = 2,
SENDING_METADATA = 3,
SENDING_FILE_DATA = 4,
SENDING_EOF = 5,
WAIT_FOR_ACK = 6,
WAIT_FOR_FINISH = 7,
NOTICE_OF_COMPLETION = 8
};
}; };
#endif // FSFW_CFDP_CFDPSOURCEHANDLER_H #endif // FSFW_CFDP_CFDPSOURCEHANDLER_H