Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
DATA.hpp@10:46946784326d, 2017-12-20 (annotated)
- Committer:
- chills
- Date:
- Wed Dec 20 14:32:40 2017 +0000
- Revision:
- 10:46946784326d
- Parent:
- 8:0e4481b64353
- Child:
- 15:c1592fc1a501
2017_12_20 14:29; First attempt at mail_box;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 8:0e4481b64353 | 1 | #ifndef _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 2 | #define _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 3 | |
thomasmorris | 8:0e4481b64353 | 4 | class DATA |
thomasmorris | 8:0e4481b64353 | 5 | { |
thomasmorris | 8:0e4481b64353 | 6 | |
thomasmorris | 8:0e4481b64353 | 7 | public: |
thomasmorris | 8:0e4481b64353 | 8 | |
thomasmorris | 8:0e4481b64353 | 9 | DATA(); |
thomasmorris | 8:0e4481b64353 | 10 | |
thomasmorris | 8:0e4481b64353 | 11 | //Setters |
chills | 10:46946784326d | 12 | void set_time(string time); |
chills | 10:46946784326d | 13 | void set_temperature(double temp); |
chills | 10:46946784326d | 14 | void set_pressure(double pressure); |
chills | 10:46946784326d | 15 | void set_light(double light); |
thomasmorris | 8:0e4481b64353 | 16 | |
thomasmorris | 8:0e4481b64353 | 17 | //Getters |
chills | 10:46946784326d | 18 | string get_time(); |
chills | 10:46946784326d | 19 | double get_temperature(); |
chills | 10:46946784326d | 20 | double get_pressure(); |
chills | 10:46946784326d | 21 | double get_light(); |
thomasmorris | 8:0e4481b64353 | 22 | |
thomasmorris | 8:0e4481b64353 | 23 | private: |
thomasmorris | 8:0e4481b64353 | 24 | //Private member variables |
chills | 10:46946784326d | 25 | string _Time; |
chills | 10:46946784326d | 26 | double _Temperature; |
chills | 10:46946784326d | 27 | double _Pressure; |
chills | 10:46946784326d | 28 | double _Light; |
thomasmorris | 8:0e4481b64353 | 29 | }; |
thomasmorris | 8:0e4481b64353 | 30 | |
thomasmorris | 8:0e4481b64353 | 31 | |
thomasmorris | 8:0e4481b64353 | 32 | #endif |