Class that holds Course information
Dependents: Course_Example course_input class_finder
Course.h@9:8fea357ee7a5, 2016-12-08 (annotated)
- Committer:
- kkizirian
- Date:
- Thu Dec 08 21:39:09 2016 +0000
- Revision:
- 9:8fea357ee7a5
- Parent:
- 7:fe9fcb384036
Updated some building lat and long positions
Who changed what in which revision?
User | Revision | Line number | New 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 | 7:fe9fcb384036 | 12 | int getHour_inMilitaryTime(); |
kkizirian | 5:7d792c9848bb | 13 | string getMinute_toString(); |
kkizirian | 0:72f706b36195 | 14 | int getMinute(); |
kkizirian | 0:72f706b36195 | 15 | string getAMPM(); |
kkizirian | 0:72f706b36195 | 16 | int getAMPM_toInt(); |
kkizirian | 0:72f706b36195 | 17 | float getLat(); |
kkizirian | 0:72f706b36195 | 18 | float getLong(); |
kkizirian | 0:72f706b36195 | 19 | string getFileString(); |
kkizirian | 0:72f706b36195 | 20 | string getDisplayString(); |
kkizirian | 0:72f706b36195 | 21 | private: |
kkizirian | 0:72f706b36195 | 22 | string abbreviatedName; |
kkizirian | 0:72f706b36195 | 23 | string fullName; |
kkizirian | 0:72f706b36195 | 24 | int hour; |
kkizirian | 0:72f706b36195 | 25 | int minute; |
kkizirian | 0:72f706b36195 | 26 | float latitude; |
kkizirian | 0:72f706b36195 | 27 | float longitude; |
kkizirian | 6:f231ecc9b944 | 28 | static map<string, float> buildingLAT; |
kkizirian | 6:f231ecc9b944 | 29 | static map<string, float> buildingLONG; |
kkizirian | 6:f231ecc9b944 | 30 | static map<string, string> buildingNames; |
kkizirian | 0:72f706b36195 | 31 | string ampm; |
kkizirian | 0:72f706b36195 | 32 | void createBuildingMaps(); |
kkizirian | 0:72f706b36195 | 33 | }; |