to avoid dynamic casting, introuced CookieIF
This commit is contained in:
25
devicehandlers/CookieIF.h
Normal file
25
devicehandlers/CookieIF.h
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @file CookieIF.h
|
||||
*
|
||||
* @date 23 Mar 2020
|
||||
*/
|
||||
|
||||
#ifndef FRAMEWORK_DEVICEHANDLERS_COOKIEIF_H_
|
||||
#define FRAMEWORK_DEVICEHANDLERS_COOKIEIF_H_
|
||||
#include <framework/devicehandlers/DeviceHandlerIF.h>
|
||||
|
||||
class CookieIF {
|
||||
public:
|
||||
/**
|
||||
* Default empty virtual destructor.
|
||||
*/
|
||||
virtual ~CookieIF() {};
|
||||
|
||||
virtual void setAddress(address_t logicalAddress_) = 0;
|
||||
virtual address_t getAddress() const = 0;
|
||||
|
||||
virtual void setMaxReplyLen(size_t maxReplyLen_) = 0;
|
||||
virtual size_t getMaxReplyLen() const = 0;
|
||||
};
|
||||
|
||||
#endif /* FRAMEWORK_DEVICEHANDLERS_COOKIEIF_H_ */
|
Reference in New Issue
Block a user