31 lines
603 B
C++
31 lines
603 B
C++
#ifndef MISSION_UTILITY_TIMESTAMP_H_
|
|
#define MISSION_UTILITY_TIMESTAMP_H_
|
|
|
|
#include <string>
|
|
#include <sstream>
|
|
#include <iomanip>
|
|
#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:
|
|
std::stringstream timestamp;
|
|
Clock::TimeOfDay_t time;
|
|
};
|
|
|
|
#endif /* MISSION_UTILITY_TIMESTAMP_H_ */
|