eive-obsw/mission/utility/Filenaming.cpp

18 lines
458 B
C++
Raw Normal View History

2022-04-13 11:56:37 +02:00
#include "Filenaming.h"
#include "Timestamp.h"
Filenaming::Filenaming() {
}
2022-04-14 07:52:21 +02:00
std::string Filenaming::generateAbsoluteFilename(std::string path, std::string filename,
2022-04-13 11:56:37 +02:00
bool addTimestamp) {
std::string absoluteName;
Timestamp timestamp;
if (addTimestamp) {
absoluteName = path + "/" + timestamp.str() + filename;
} else {
absoluteName = path + "/" + filename;
}
return absoluteName;
}