-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruntime.cpp
More file actions
47 lines (36 loc) · 976 Bytes
/
runtime.cpp
File metadata and controls
47 lines (36 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <QtCore>
#include "runtime.h"
#include "settings.h"
#include "helper.h"
Runtime* Runtime::pSingleton=0;
Runtime* Runtime::getInstance()
{
if (pSingleton==0)
{
pSingleton=new Runtime();
}
return pSingleton;
}
Runtime::Runtime()
{
inputFolder = "";
outputFolder = "";
persistentFolder = "";
inputFiles.clear();
newStudyUID = "";
newSeriesUID = "";
newInstanceUID = "";
// Make sure that we are at least 1ms behind any prior anonymization to ensure we get a unique MRN/ACC
QThread::msleep(1);
fakeMRN = Helper::getFakeMRN();
fakeACC = Helper::getFakeACC();
fakeName = Helper::getFakeName();
hashACC = "";
accUsedForHash = "";
persistentCounter = 0;
counterMacroFound = false;
journalEntryCreated = false;
dateString = QDateTime::currentDateTime().toString("MMddyyyy");
timeString = QDateTime::currentDateTime().toString("hhmmsszzz");
processedFiles=0;
}