26 lines
649 B
C++
26 lines
649 B
C++
#ifndef TMTCPACKET_PUS_TC_SETTABLEDATAPOINTERIF_H_
|
|
#define TMTCPACKET_PUS_TC_SETTABLEDATAPOINTERIF_H_
|
|
|
|
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
|
|
|
|
/**
|
|
* @brief This interface can be used for classes which store a reference to data. It allows
|
|
* the implementing class to redirect the data it refers too.
|
|
*/
|
|
class RedirectableDataPointerIF {
|
|
public:
|
|
virtual ~RedirectableDataPointerIF() {};
|
|
|
|
/**
|
|
* Redirect the data pointer.
|
|
* @param dataPtr
|
|
* @return
|
|
*/
|
|
virtual ReturnValue_t setData(const uint8_t* dataPtr) = 0;
|
|
private:
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_SRC_FSFW_TMTCPACKET_PUS_TC_SETTABLEDATAPOINTERIF_H_ */
|