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 14:34:53 2017 +0000
Revision:
81:996c0a3319b4
Parent:
80:959151952153
Child:
83:0d3572a8a851
Changed the logger to use char arrays of a size 256 and fixed some issues that cropped up from this. Moved all printing statements over to use the logger

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:
Netaphous 64:8ada3e0b2048 10
Netaphous 64:8ada3e0b2048 11 // constructor
aburch1 81:996c0a3319b4 12 CircularArray(int limit, MessageLogger *newLogger);
Netaphous 64:8ada3e0b2048 13
Netaphous 64:8ada3e0b2048 14 // public methods:
Netaphous 64:8ada3e0b2048 15 void pushValue(Measure _measure);
Netaphous 65:3723d2729b68 16 void readX(int x);
Netaphous 65:3723d2729b68 17 void readAll();
Netaphous 64:8ada3e0b2048 18 void deleteX(int x);
Netaphous 64:8ada3e0b2048 19 void deleteAll();
Netaphous 64:8ada3e0b2048 20 int getSize();
aburch1 80:959151952153 21 Measure pullValue();
Netaphous 64:8ada3e0b2048 22
Netaphous 64:8ada3e0b2048 23 private:
aburch1 81:996c0a3319b4 24 MessageLogger *logger;
Netaphous 64:8ada3e0b2048 25 int firstValue, currentSize, maxSize;
Netaphous 64:8ada3e0b2048 26 int nextSpace();
Netaphous 64:8ada3e0b2048 27 Measure *array;
aburch1 81:996c0a3319b4 28 };
aburch1 81:996c0a3319b4 29 #endif