3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

CircularArray/CircularArray.h

Committer:
aburch1
Date:
2017-05-11
Revision:
83:0d3572a8a851
Parent:
81:996c0a3319b4

File content as of revision 83:0d3572a8a851:

#ifndef CIRCULARARRAY_H
#define CIRCULARARRAY_H

#include "Measure.h"
#include "MessageLogger.h"

class CircularArray
{    
    public:
        CircularArray(int limit, MessageLogger *newLogger);
       
        void pushValue(Measure _measure);
        void readN(int n);
        void readAll();
        void deleteN(int n);
        void deleteAll();
        int getSize();
        Measure pullValue();
        
    private:
        MessageLogger *logger;
        int firstValue, currentSize, maxSize;
        int nextSpace();
        Measure *array;
};
#endif