fsfw/src/fsfw/timemanager/TimeStamperIF.h

24 lines
771 B
C
Raw Normal View History

2020-12-15 23:00:30 +01:00
#ifndef FSFW_TIMEMANAGER_TIMESTAMPERIF_H_
#define FSFW_TIMEMANAGER_TIMESTAMPERIF_H_
2022-07-27 17:33:39 +02:00
#include "TimeStampIF.h"
#include "fsfw/returnvalues/returnvalue.h"
2022-07-20 22:21:15 +02:00
#include "fsfw/serialize/SerializeIF.h"
/**
* A class implementing this IF provides facilities to add a time stamp to the
* buffer provided.
* Implementors need to ensure that calling the method is thread-safe, i.e.
* addTimeStamp may be called in parallel from a different context.
*/
2022-07-27 17:33:39 +02:00
class TimeStamperIF : public SerializeIF, public TimeStampIF {
2022-02-02 10:29:30 +01:00
public:
2022-07-22 16:06:31 +02:00
virtual ReturnValue_t addTimeStamp(uint8_t* buffer, uint8_t maxSize) = 0;
2022-07-20 22:21:15 +02:00
~TimeStamperIF() override = default;
2022-07-27 17:33:39 +02:00
size_t getTimestampSize() const override { return getSerializedSize(); }
2022-07-27 17:00:43 +02:00
protected:
};
2020-12-15 23:00:30 +01:00
#endif /* FSFW_TIMEMANAGER_TIMESTAMPERIF_H_ */