eive-obsw/mission/utility/Filenaming.cpp
2022-04-14 07:52:21 +02:00

18 lines
458 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;
}