eive-obsw/mission/utility/Timestamp.h
Robin Mueller 447c4d5c88
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
all retval replacements
2022-08-24 17:27:47 +02:00

32 lines
557 B
C++

#ifndef MISSION_UTILITY_TIMESTAMP_H_
#define MISSION_UTILITY_TIMESTAMP_H_
#include <iomanip>
#include <sstream>
#include <string>
#include "fsfw/returnvalues/returnvalue.h"
#include "fsfw/timemanager/Clock.h"
/**
* @brief This class generates timestamps for files.
*
* @author J. Meier
*/
class Timestamp {
public:
Timestamp();
virtual ~Timestamp();
/**
* @brief Returns the timestamp string
*/
std::string str();
private:
std::stringstream timestamp;
Clock::TimeOfDay_t time;
};
#endif /* MISSION_UTILITY_TIMESTAMP_H_ */