igc.h
changeset 12 84b0f3ca474a
parent 11 d927333c8ffe
child 14 3d8176df0461
equal deleted inserted replaced
11:d927333c8ffe 12:84b0f3ca474a
     5 
     5 
     6 class Fix {
     6 class Fix {
     7   public: 
     7   public: 
     8     Fix(const QString&);
     8     Fix(const QString&);
     9   private:
     9   private:
    10     QString theTime, valid;
    10     QTime time_;
       
    11     bool fix3d_;
    11     struct {
    12     struct {
    12 	QString lon;
    13 	QString lon;
    13 	QString lat;
    14 	QString lat;
    14     } gps;
    15     } gps_;
    15     struct {
    16     struct {
    16 	int press;
    17 	int baro;
    17 	int gps;
    18 	int gps;
    18     } theAlt;
    19     } alt_;
    19 };
    20 };
    20 
    21 
    21 typedef QList<Fix> Fixes;
    22 typedef QList<Fix> Fixes;
    22 
    23 
    23 class IGC {
    24 class IGC {
    24   public:
    25   public:
    25     void read(QTextStream&);
    26     void read(QTextStream&);
    26     QString author() const { return theAuthor; }
    27     QString device() const { return device_; }
    27     QString pilot() const { return thePilot; }
    28     QString pilot() const { return pilot_; }
       
    29     QDate date() const { return date_; }
    28   private:
    30   private:
    29     QString theAuthor, thePilot, theGlider;
    31     QString device_, pilot_, glider_;
    30     QStringList points;
    32     QDate date_;
    31     Fixes fixes;
    33     Fixes fixes_;
    32 
    34 
    33 };
    35 };
    34 #endif
    36 #endif