Minor fixes

Dependencies:   LPS25H hts221

Fork of Coursework by Group PAG

Committer:
noutram
Date:
Thu May 04 14:54:07 2017 +0000
Revision:
44:2b23c7407547
Now builds - Queue was the name of an existing class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
noutram 44:2b23c7407547 1 #ifndef Queue_H
noutram 44:2b23c7407547 2 #define Queue_H
noutram 44:2b23c7407547 3 #include "Reading.h"
noutram 44:2b23c7407547 4
noutram 44:2b23c7407547 5 class MyQueue{
noutram 44:2b23c7407547 6 //variables
noutram 44:2b23c7407547 7 public:
noutram 44:2b23c7407547 8 int maxSize;
noutram 44:2b23c7407547 9 int front;
noutram 44:2b23c7407547 10 int back;
noutram 44:2b23c7407547 11 int count;
noutram 44:2b23c7407547 12 bool isFull;
noutram 44:2b23c7407547 13 Reading *storage;
noutram 44:2b23c7407547 14
noutram 44:2b23c7407547 15
noutram 44:2b23c7407547 16 //realisticly what we need::
noutram 44:2b23c7407547 17 //read values taking argument n
noutram 44:2b23c7407547 18 //read values taking no argument
noutram 44:2b23c7407547 19 //take value and put it in the right place
noutram 44:2b23c7407547 20 //delete with argument
noutram 44:2b23c7407547 21 //delete without argument
noutram 44:2b23c7407547 22
noutram 44:2b23c7407547 23 MyQueue();
noutram 44:2b23c7407547 24 void push(Reading r);
noutram 44:2b23c7407547 25 void read(int nR); // where nR is the number to read, if REAL ALL is typed then the method will be called by something like queue.read(queue.count).
noutram 44:2b23c7407547 26 void deleteRecords(int nD); //as above but nD is number to delete
noutram 44:2b23c7407547 27
noutram 44:2b23c7407547 28 };
noutram 44:2b23c7407547 29 #endif