eive-obsw/mission/utility/Filenaming.cpp
Jakob Meier 6d322c6e78
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
run clang format script
2022-04-30 16:21:59 +02:00

18 lines
452 B
C++

#include "Filenaming.h"
#include "Timestamp.h"
Filenaming::Filenaming() {}
std::string Filenaming::generateAbsoluteFilename(std::string path, std::string filename,
bool addTimestamp) {
std::string absoluteName;
Timestamp timestamp;
if (addTimestamp) {
absoluteName = path + "/" + timestamp.str() + filename;
} else {
absoluteName = path + "/" + filename;
}
return absoluteName;
}