3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
niallfrancis
Date:
Sat May 13 17:35:58 2017 +0000
Revision:
85:422d0a1b95cf
Parent:
83:0d3572a8a851
Finished commenting classes;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aburch1 81:996c0a3319b4 1 #ifndef CIRCULARARRAY_H
aburch1 81:996c0a3319b4 2 #define CIRCULARARRAY_H
aburch1 81:996c0a3319b4 3
Netaphous 64:8ada3e0b2048 4 #include "Measure.h"
aburch1 81:996c0a3319b4 5 #include "MessageLogger.h"
aburch1 81:996c0a3319b4 6
Netaphous 64:8ada3e0b2048 7 class CircularArray
Netaphous 64:8ada3e0b2048 8 {
Netaphous 64:8ada3e0b2048 9 public:
aburch1 81:996c0a3319b4 10 CircularArray(int limit, MessageLogger *newLogger);
Netaphous 64:8ada3e0b2048 11
Netaphous 64:8ada3e0b2048 12 void pushValue(Measure _measure);
aburch1 83:0d3572a8a851 13 void readN(int n);
Netaphous 65:3723d2729b68 14 void readAll();
aburch1 83:0d3572a8a851 15 void deleteN(int n);
Netaphous 64:8ada3e0b2048 16 void deleteAll();
Netaphous 64:8ada3e0b2048 17 int getSize();
aburch1 80:959151952153 18 Measure pullValue();
Netaphous 64:8ada3e0b2048 19
Netaphous 64:8ada3e0b2048 20 private:
aburch1 81:996c0a3319b4 21 MessageLogger *logger;
Netaphous 64:8ada3e0b2048 22 int firstValue, currentSize, maxSize;
Netaphous 64:8ada3e0b2048 23 int nextSpace();
Netaphous 64:8ada3e0b2048 24 Measure *array;
aburch1 81:996c0a3319b4 25 };
aburch1 81:996c0a3319b4 26 #endif