-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
58 lines (39 loc) · 1.07 KB
/
main.cpp
File metadata and controls
58 lines (39 loc) · 1.07 KB
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
48
49
50
51
52
53
54
55
56
57
58
#include <QCoreApplication>
#include "multipoly.h"
#include "computetaylor.h"
#include <iostream>
#include <vector>
#include <numeric>
#include <cstdint>
#include <cassert>
#include <qfile.h>
#include <QDebug>
#include <QString>
#include <QStringList>
#include <QElapsedTimer>
#include "temperaturecorrection.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
//Time how long it takes
QElapsedTimer timer;
timer.start();
TemperatureCorrection correction;
//ComputeTaylor taylor;
std::cout<<"\nCompleted in: "<<timer.nsecsElapsed()<<" ns\n";
//Testing the interface function
// Ask user for OL and X
int OL;
int x;
while(true){
std::cout<<"Enter an OL"<<std::endl;
std::cin>>OL;
std::cout<<"Enter a corrected X value"<<std::endl;
std::cin>>x;
std::vector<double> interfaceOutput;
interfaceOutput=correction.findCorrectedWavelengthAndYValue(OL,x);
qDebug()<<"Printing corrected Y and corrected Wavelength"<<endl;
qDebug()<<interfaceOutput<<endl;
}
return a.exec();
}