1
0
forked from fsfw/fsfw

to avoid dynamic casting, introuced CookieIF

This commit is contained in:
2020-03-23 19:09:42 +01:00
parent f7bd661e69
commit b6bf9d7147
11 changed files with 82 additions and 68 deletions

View File

@ -93,10 +93,10 @@ RMAPCookie::~RMAPCookie() {
}
uint32_t RMAPCookie::getMaxReplyLen() const {
return maxReplyLen;
}
//uint32_t RMAPCookie::getMaxReplyLen() const {
// return maxReplyLen;
//}
//
void RMAPCookie::setMaxReplyLen(uint32_t maxReplyLen) {
this->maxReplyLen = maxReplyLen;
}

View File

@ -6,7 +6,7 @@
class RMAPChannelIF;
class RMAPCookie : public Cookie{
class RMAPCookie : public Cookie {
public:
//To Uli: Sorry, I need an empty ctor to initialize an array of cookies.
RMAPCookie();
@ -28,7 +28,7 @@ public:
void setCommandMask(uint8_t commandMask);
uint8_t getCommandMask();
uint32_t getMaxReplyLen() const;
//size_t getMaxReplyLen() const;
void setMaxReplyLen(uint32_t maxReplyLen);
uint16_t getTransactionIdentifier() const;