-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurfacecode.cpp
54 lines (52 loc) · 1.17 KB
/
surfacecode.cpp
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
#include "surfacecode.h"
SurfaceCode::SurfaceCode()
{
}
QString SurfaceCode::decode(QString surfaceCode)
{
int code = surfaceCode.toInt();
QString result = "";
switch(code)
{
case 1:
result = "Asphalt";
break;
case 2:
result = "Concrete";
break;
case 3:
result = "Turf/Grass";
break;
case 4:
result = "Dirt";
break;
case 5:
result = "Gravel";
break;
case 6:
result = "Asphalt Helipad";
break;
case 7:
result ="Concrete Helipad";
break;
case 8:
result = "Turf Helipad";
break;
case 9:
result = "Dirt Helipad";
break;
case 10:
result = "Asphalt taxiway with yellow hold lines";
break;
case 11:
result = "Concrete taxiway with yellow hold lines";
break;
case 12:
result = "Dry lakebed runway";
break;
case 13:
result = "Water runway";
break;
}
return result;
}