this is going to be complex..

This commit is contained in:
Robin Müller 2023-07-24 10:11:16 +02:00
parent 5d3f00da7f
commit 98cbf38432
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
2 changed files with 15 additions and 1 deletions

View File

@ -3,3 +3,12 @@
[[nodiscard]] bool cfdp::PutRequest::isMetadataOnly() const {
return !destNameSize.has_value() and !sourceNameSize.has_value();
}
ReturnValue_t cfdp::PutRequest::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
SerializeIF::Endianness streamEndianness) const {
return returnvalue::OK;
}
ReturnValue_t cfdp::PutRequest::deSerialize(const uint8_t **buffer, size_t *size,
SerializeIF::Endianness streamEndianness) {
return returnvalue::OK;
}
size_t cfdp::PutRequest::getSerializedSize() const { return 0; }

View File

@ -9,7 +9,7 @@
namespace cfdp {
class PutRequest {
class PutRequest: public SerializeIF {
public:
EntityId destId;
std::optional<TransmissionMode> transmissionMode;
@ -21,6 +21,11 @@ class PutRequest {
std::vector<MessageToUserTlv> messagesToUser;
std::vector<FilestoreRequestTlv> fsRequest;
[[nodiscard]] ReturnValue_t serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const override;
ReturnValue_t deSerialize(const uint8_t **buffer, size_t *size,
Endianness streamEndianness) override;
[[nodiscard]] size_t getSerializedSize() const override;
[[nodiscard]] bool isMetadataOnly() const;
};