eive-obsw/mission/utility/Timestamp.h

31 lines
603 B
C
Raw Normal View History

2021-12-11 11:56:47 +01:00
#ifndef MISSION_UTILITY_TIMESTAMP_H_
#define MISSION_UTILITY_TIMESTAMP_H_
#include <string>
2021-12-23 11:07:19 +01:00
#include <sstream>
#include <iomanip>
2021-12-11 11:56:47 +01:00
#include "fsfw/timemanager/Clock.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
/**
* @brief This class generates timestamps for files.
*
* @author J. Meier
*/
class Timestamp : public HasReturnvaluesIF {
public:
Timestamp();
virtual ~Timestamp();
/**
* @brief Returns the timestamp string
*/
std::string str();
private:
2021-12-23 11:07:19 +01:00
std::stringstream timestamp;
2021-12-11 11:56:47 +01:00
Clock::TimeOfDay_t time;
};
#endif /* MISSION_UTILITY_TIMESTAMP_H_ */