Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
674 KeyOz 1
/*
2
*
3
* This file is part of QMapControl,
4
* an open-source cross-platform map widget
5
*
6
* Copyright (C) 2007 - 2008 Kai Winter
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
* GNU Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with QMapControl. If not, see <http://www.gnu.org/licenses/>.
20
*
21
* Contact e-mail: kaiwinter@gmx.de
22
* Program URL   : http://qmapcontrol.sourceforge.net/
23
*
24
*/
25
 
26
#ifndef GPS_POSITION_H
27
#define GPS_POSITION_H
28
 
29
#include <QString>
30
 
31
namespace qmapcontrol
32
{
33
    //! Represents a coordinate from a GPS receiver
34
    /*!
35
     * This class is used to represent a coordinate which has been parsed from a NMEA string.
36
     * This is not fully integrated in the API. An example which uses this data type can be found under Samples.
37
     * @author Kai Winter
38
     */
39
    class GPS_Position
40
    {
41
    public:
42
        GPS_Position(float time, float longitude, QString longitude_dir, float latitude, QString latitude_dir);
43
        float time; /*!< time of the string*/
44
        float longitude; /*!< longitude coordinate*/
45
        float latitude; /*!< latitude coordinate*/
46
 
47
    private:
48
        QString longitude_dir;
49
        QString latitude_dir;
50
    };
51
}
52
#endif