Class that holds Course information

Dependents:   Course_Example course_input class_finder

Committer:
kkizirian
Date:
Thu Dec 08 17:15:04 2016 +0000
Revision:
6:f231ecc9b944
Parent:
5:7d792c9848bb
Child:
7:fe9fcb384036
Using map class to make things easier

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kkizirian 0:72f706b36195 1 #include "mbed.h"
kkizirian 0:72f706b36195 2 #include <string>
kkizirian 6:f231ecc9b944 3 #include <map>
kkizirian 0:72f706b36195 4
kkizirian 0:72f706b36195 5 class Course {
kkizirian 0:72f706b36195 6 public:
kkizirian 0:72f706b36195 7 Course(string pAbbreviatedName, int pHour, int pMinute, string ampm);
kkizirian 0:72f706b36195 8 string getFullName();
kkizirian 0:72f706b36195 9 string getAbbreviatedName();
kkizirian 0:72f706b36195 10 int getHour();
kkizirian 2:8f163dc0b6c4 11 int getHour_forCompare();
kkizirian 5:7d792c9848bb 12 string getMinute_toString();
kkizirian 0:72f706b36195 13 int getMinute();
kkizirian 0:72f706b36195 14 string getAMPM();
kkizirian 0:72f706b36195 15 int getAMPM_toInt();
kkizirian 0:72f706b36195 16 float getLat();
kkizirian 0:72f706b36195 17 float getLong();
kkizirian 0:72f706b36195 18 string getFileString();
kkizirian 0:72f706b36195 19 string getDisplayString();
kkizirian 0:72f706b36195 20 private:
kkizirian 0:72f706b36195 21 string abbreviatedName;
kkizirian 0:72f706b36195 22 string fullName;
kkizirian 0:72f706b36195 23 int hour;
kkizirian 0:72f706b36195 24 int minute;
kkizirian 0:72f706b36195 25 float latitude;
kkizirian 0:72f706b36195 26 float longitude;
kkizirian 6:f231ecc9b944 27 static map<string, float> buildingLAT;
kkizirian 6:f231ecc9b944 28 static map<string, float> buildingLONG;
kkizirian 6:f231ecc9b944 29 static map<string, string> buildingNames;
kkizirian 0:72f706b36195 30 string ampm;
kkizirian 0:72f706b36195 31 void createBuildingMaps();
kkizirian 0:72f706b36195 32 };