add optional suffix to getFilename
This commit is contained in:
parent
f8304501ba
commit
39fec831ff
@ -877,12 +877,12 @@ QColor PylonRecorder::progressColor(int value) {
|
||||
}
|
||||
|
||||
|
||||
std::string PylonRecorder::createFilename(const std::string &extension) {
|
||||
std::string PylonRecorder::createFilename(const std::string &suffix, const std::string &extension) {
|
||||
QDateTime dt(QDateTime::currentDateTimeUtc());
|
||||
QDate date = dt.date();
|
||||
std::string base = (date.toString("yyyy.MM.dd") + "_").toStdString();
|
||||
QString idx = QString::number(movieCount);
|
||||
std::string fname = base + idx.toStdString() + extension;
|
||||
std::string fname = base + idx.toStdString() + suffix + extension;
|
||||
while (QFile::exists(QString::fromStdString(fname))) {
|
||||
movieCount++;
|
||||
fname = base + QString::number(movieCount).toStdString() + extension;
|
||||
|
@ -81,7 +81,7 @@ private:
|
||||
void setExperimenterName();
|
||||
void setSubjectID();
|
||||
QColor progressColor(int value);
|
||||
std::string createFilename(const std::string &extension=".raw");
|
||||
std::string createFilename(const std::string &suffix="", const std::string &extension=".raw");
|
||||
void cameraConfiguration();
|
||||
VideoSpecs getVideoSpecs(const ImageSettings &settings);
|
||||
void startSinglecamRecording();
|
||||
|
Loading…
Reference in New Issue
Block a user