18 lines
452 B
C++
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;
|
|
}
|