igc.h
changeset 11 d927333c8ffe
parent 10 e1abdc480485
child 12 84b0f3ca474a
equal deleted inserted replaced
10:e1abdc480485 11:d927333c8ffe
     1 #ifndef _igc_h_
     1 #ifndef _igc_h_
     2 #define _igc_h_
     2 #define _igc_h_
     3 
     3 
     4 #include "pch.h"
     4 #include "pch.h"
       
     5 
       
     6 class Fix {
       
     7   public: 
       
     8     Fix(const QString&);
       
     9   private:
       
    10     QString theTime, valid;
       
    11     struct {
       
    12 	QString lon;
       
    13 	QString lat;
       
    14     } gps;
       
    15     struct {
       
    16 	int press;
       
    17 	int gps;
       
    18     } theAlt;
       
    19 };
       
    20 
       
    21 typedef QList<Fix> Fixes;
     5 
    22 
     6 class IGC {
    23 class IGC {
     7   public:
    24   public:
     8     void read(QTextStream&);
    25     void read(QTextStream&);
     9     QString author() const { return theAuthor; }
    26     QString author() const { return theAuthor; }
    10     QString pilot() const { return thePilot; }
    27     QString pilot() const { return thePilot; }
    11   private:
    28   private:
    12     QString theAuthor, thePilot, theGlider;
    29     QString theAuthor, thePilot, theGlider;
    13     QStringList points;
    30     QStringList points;
       
    31     Fixes fixes;
    14 
    32 
    15 };
    33 };
    16 #endif
    34 #endif