Calculates azimuth and elevation of a satellite dish based on its longitude, latitude and selected satellite.

Dependencies:   PinDetect TextLCD mbed MODGPS

SatelliteList.h

Committer:
BartJanssens
Date:
2012-03-29
Revision:
0:fe8decc6a938

File content as of revision 0:fe8decc6a938:

#include <fstream>
#include <vector>
#include "Satellite.h"
#include "CircularLinkedList.h"

class SatelliteList
{
public:  
  SatelliteList(char *f, char delimiter);
  void display();
  Satellite * getNext();
  Satellite * getPrev();
  Satellite * getCurrent();
private:
  void split(vector<string> & theStringVector,  /* Altered/returned value */
             const  string  & theString,
             const  char theDelimiter);

  string filename;  //name
  ifstream sfile;
  CircularLinkedList<Satellite> clist;
};