even better name

This commit is contained in:
Robin Müller 2023-07-24 16:40:25 +02:00
parent 33df8e8cc5
commit e8b9897ee3
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
target_sources( target_sources(
${LIB_FSFW_NAME} ${LIB_FSFW_NAME}
PRIVATE SourceHandler.cpp DestHandler.cpp PutRequest.cpp MsgToUserParser.cpp PRIVATE SourceHandler.cpp DestHandler.cpp PutRequest.cpp
FaultHandlerBase.cpp UserBase.cpp) ReservedMessageParser.cpp FaultHandlerBase.cpp UserBase.cpp)

View File

@ -1,5 +1,4 @@
#include "MsgToUserParser.h" #include "ReserverMessageParser.h"
#include "fsfw/cfdp/CfdpMessage.h" #include "fsfw/cfdp/CfdpMessage.h"
#include "fsfw/cfdp/handler/PutRequest.h" #include "fsfw/cfdp/handler/PutRequest.h"
#include "fsfw/cfdp/tlv/MessageToUserTlv.h" #include "fsfw/cfdp/tlv/MessageToUserTlv.h"
@ -8,12 +7,13 @@
using namespace returnvalue; using namespace returnvalue;
cfdp::MsgsToUserParser::MsgsToUserParser(StorageManagerIF& ipcStore, MessageQueueIF& msgQueue, cfdp::ReservedMessageParser::ReservedMessageParser(StorageManagerIF& ipcStore,
MessageQueueId_t userDestination) MessageQueueIF& msgQueue,
MessageQueueId_t userDestination)
: msgQueue(msgQueue), ipcStore(ipcStore) {} : msgQueue(msgQueue), ipcStore(ipcStore) {}
ReturnValue_t cfdp::MsgsToUserParser::parseMessages(const uint8_t* msgsToUserPtr, ReturnValue_t cfdp::ReservedMessageParser::parseForReserverMessages(const uint8_t* msgsToUserPtr,
size_t sizeOfMessages) { size_t sizeOfMessages) {
ReturnValue_t result; ReturnValue_t result;
size_t currentIdx = 0; size_t currentIdx = 0;
const uint8_t* currentPtr = msgsToUserPtr; const uint8_t* currentPtr = msgsToUserPtr;

View File

@ -10,12 +10,12 @@ namespace cfdp {
* CFDP requests sent via the IPC store where applicable. It also provides an API to retrieve * CFDP requests sent via the IPC store where applicable. It also provides an API to retrieve
* custom messages which are not special CFDP messages from a provided bytestream. * custom messages which are not special CFDP messages from a provided bytestream.
*/ */
class MsgsToUserParser { class ReservedMessageParser {
public: public:
MsgsToUserParser(StorageManagerIF& ipcStore, MessageQueueIF& msgQueue, ReservedMessageParser(StorageManagerIF& ipcStore, MessageQueueIF& msgQueue,
MessageQueueId_t userDestination); MessageQueueId_t userDestination);
ReturnValue_t parseMessages(const uint8_t* msgsToUserPtr, size_t sizeOfMessages); ReturnValue_t parseForReserverMessages(const uint8_t* msgsToUserPtr, size_t sizeOfMessages);
private: private:
MessageQueueIF& msgQueue; MessageQueueIF& msgQueue;