lets see how we can do this

This commit is contained in:
Robin Müller 2023-07-21 16:35:05 +02:00
parent 045054fce0
commit 69fd6d0f6a
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
5 changed files with 8 additions and 5 deletions

View File

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

View File

@ -9,6 +9,7 @@ class MetadataParser {
explicit MetadataParser(MetadataPduReader& reader); explicit MetadataParser(MetadataPduReader& reader);
private: private:
}; };
} // namespace cfdp } // namespace cfdp

View File

@ -0,0 +1,5 @@
#include "PutRequest.h"
[[nodiscard]] bool cfdp::PutRequest::isMetadataOnly() const {
return !destNameSize.has_value() and !sourceNameSize.has_value();
}

View File

@ -21,9 +21,7 @@ class PutRequest {
std::vector<MessageToUserTlv> messagesToUser; std::vector<MessageToUserTlv> messagesToUser;
std::vector<FilestoreRequestTlv> fsRequest; std::vector<FilestoreRequestTlv> fsRequest;
[[nodiscard]] bool isMetadataOnly() const { [[nodiscard]] bool isMetadataOnly() const;
return !destNameSize.has_value() and !sourceNameSize.has_value();
}
}; };
} // namespace cfdp } // namespace cfdp

View File

@ -1 +0,0 @@
#include "PutRequestReader.h"