-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMission.cpp
More file actions
30 lines (23 loc) · 729 Bytes
/
Copy pathMission.cpp
File metadata and controls
30 lines (23 loc) · 729 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
#include "Mission.h"
using namespace std;
//string name;
//string date;
//string alt;
//string state;
Mission::Mission(string theName, string theDate,int theAlt,string theState,double TheLatitude,double TheLongitude,string TheFireName,string TheDescription) : name(theName), date(theDate),alt(theAlt), state(theState) ,latitude(TheLatitude),longitude(TheLongitude),fireName(TheFireName),description(TheDescription){
}
string Mission::get_name() {
return name;
}
json Mission::get_json(){
json j;
j["name"] = name;
j["date"] = date;
j["alt"] = alt;
j["latitude"] = latitude;
j["longitude"] = longitude;
j["state"] = state;
j["fireName"] = fireName;
j["description"] = description;
return j;
}