3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
aburch1
Date:
Thu May 11 19:23:55 2017 +0000
Revision:
83:0d3572a8a851
Parent:
81:996c0a3319b4
Comments cleaned and improved throughout classes. Main header class comment complete, other class comments still need to be written.

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