igc.h
changeset 28 c55e1f2a4db4
parent 27 dfefb6003498
equal deleted inserted replaced
27:dfefb6003498 28:c55e1f2a4db4
    52  *  fixes. The checksum verification is not implemented currently.
    52  *  fixes. The checksum verification is not implemented currently.
    53  */
    53  */
    54 class IGC {
    54 class IGC {
    55   public:
    55   public:
    56 
    56 
       
    57     IGC();
       
    58     IGC(QTextStream&);
       
    59     ~IGC();
       
    60 
    57     //! Read the IGC records.
    61     //! Read the IGC records.
    58     //!	\param s a (file) stream containing the records
    62     //!	\param s a (file) stream containing the records
    59     void read(QTextStream& s);
    63     void read(QTextStream& s);
    60     QString device() const { return device_; }	//!< the generator of the IGC file
    64     QString device() const { return device_; }	//!< the generator of the IGC file
    61     QString pilot() const { return pilot_; }	//!< pilots name
    65     QString pilot() const { return pilot_; }	//!< pilots name
    64     
    68     
    65     const Fixes& fixes() const { return fixes_; }	//!< list of fixes
    69     const Fixes& fixes() const { return fixes_; }	//!< list of fixes
    66 
    70 
    67     Fix start() const { return start_; }	//!< the very first fix
    71     Fix start() const { return start_; }	//!< the very first fix
    68     Fix landing() const { return landing_; }	//!< the very last fix
    72     Fix landing() const { return landing_; }	//!< the very last fix
       
    73     const QVector<QPointF>& altitude(Fix::Source) const;
    69 
    74 
    70   private:
    75   private:
    71     QString device_, pilot_, glider_;
    76     QString device_, pilot_, glider_;
    72     QDate date_;
    77     QDate date_;
    73     Fixes fixes_;
    78     Fixes fixes_;
       
    79     mutable QVector<QPointF>* altitude_[2];
    74 
    80 
    75     Fix start_;
    81     Fix start_;
    76     Fix landing_;
    82     Fix landing_;
    77 
    83 
    78 };
    84 };