Class that holds Course information
Dependents: Course_Example course_input class_finder
Diff: Course.cpp
- Revision:
- 6:f231ecc9b944
- Parent:
- 5:7d792c9848bb
- Child:
- 7:fe9fcb384036
--- a/Course.cpp Wed Dec 07 22:23:17 2016 +0000 +++ b/Course.cpp Thu Dec 08 17:15:04 2016 +0000 @@ -1,21 +1,21 @@ #include "Course.h" //#include <string> -/*map<string, float> create_lat_map() { +map<string, float> create_lat_map() { map<string, float> m; m["CLH"] = 33.774801; m["COC"] = 33.777442; - m["KLS"] = 33.777244; - m["VAN"] = 33.776000; + m["KLS"] = 33.777262; + m["VAN"] = 33.775991; return m; } map<string, float> create_long_map() { map<string, float> m; - m["CLH"] = -84.396376; + m["CLH"] = -84.396389; m["COC"] = -84.397259; - m["KLS"] = -84.396256; - m["VAN"] = -84.397132; + m["KLS"] = -84.396003; + m["VAN"] = -84.397128; return m; } @@ -26,18 +26,18 @@ m["KLS"] = "Klaus"; m["VAN"] = "VanLeer"; return m; -}*/ +} -//map<string, float> Course::buildingLAT = create_lat_map(); -//map<string, float> Course::buildingLONG = create_long_map(); -//map<string, string> Course::buildingNames = create_names_map(); +map<string, float> Course::buildingLAT = create_lat_map(); +map<string, float> Course::buildingLONG = create_long_map(); +map<string, string> Course::buildingNames = create_names_map(); Course :: Course(string pAbbreviatedName, int pHour, int pMinute, string pAMPM) { - if (pAbbreviatedName == "CLH") { + /*if (pAbbreviatedName == "CLH") { fullName = "Clough"; latitude = 33.774801; - longitude = -84.396376; + longitude = -84.396389; } else if (pAbbreviatedName == "COC") { fullName = "CoC"; @@ -46,20 +46,20 @@ } else if (pAbbreviatedName == "KLS") { fullName = "Klaus"; - latitude = 33.777244; - longitude = -84.396256; + latitude = 33.777262; + longitude = -84.396003; } else if (pAbbreviatedName == "VAN") { fullName = "VanLeer"; latitude = 33.776000; longitude = -84.397132; - } + }*/ //createBuildingMaps(); abbreviatedName = pAbbreviatedName; - //fullName = buildingNames[pAbbreviatedName]; - //latitude = buildingLAT[pAbbreviatedName]; - //longitude = buildingLONG[pAbbreviatedName]; + fullName = buildingNames[pAbbreviatedName]; + latitude = buildingLAT[pAbbreviatedName]; + longitude = buildingLONG[pAbbreviatedName]; ampm = pAMPM; hour = pHour; minute = pMinute;