1 | /***************************************************************************
|
---|
2 | * Copyright (C) 2008 by Daniel Wendt *
|
---|
3 | * gentoo.murray@gmail.com *
|
---|
4 | * *
|
---|
5 | * This program is free software; you can redistribute it and/or modify *
|
---|
6 | * it under the terms of the GNU General Public License as published by *
|
---|
7 | * the Free Software Foundation; either version 2 of the License, or *
|
---|
8 | * (at your option) any later version. *
|
---|
9 | * *
|
---|
10 | * This program is distributed in the hope that it will be useful, *
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
---|
13 | * GNU General Public License for more details. *
|
---|
14 | * *
|
---|
15 | * You should have received a copy of the GNU General Public License *
|
---|
16 | * along with this program; if not, write to the *
|
---|
17 | * Free Software Foundation, Inc., *
|
---|
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
---|
19 | ***************************************************************************/
|
---|
20 |
|
---|
21 | #ifndef NODE_H
|
---|
22 | #define NODE_H
|
---|
23 |
|
---|
24 | namespace osm
|
---|
25 | {
|
---|
26 |
|
---|
27 | /**
|
---|
28 | \code
|
---|
29 | <node id="122603925"
|
---|
30 | lat="53.0780875"
|
---|
31 | lon="8.1351704"
|
---|
32 | user="artus70" visible="true" timestamp="2007-11-18T22:18:59+00:00"/>
|
---|
33 | \endcode
|
---|
34 | */
|
---|
35 | class Node
|
---|
36 | {
|
---|
37 | public:
|
---|
38 | //! ID of the node
|
---|
39 | long long id;
|
---|
40 | //! latitude coordinate
|
---|
41 | double lat;
|
---|
42 | //! longitude coordinate
|
---|
43 | double lon;
|
---|
44 | /**
|
---|
45 | * counts the rate, how much this node is used in different ways
|
---|
46 | */
|
---|
47 | ushort numsOfUse;
|
---|
48 | public:
|
---|
49 | /**
|
---|
50 | * Construktor
|
---|
51 | * @param id ID of the node
|
---|
52 | * @param lat latitude
|
---|
53 | * @param lon longitude
|
---|
54 | */
|
---|
55 | Node( long long id=-1, double lat=0, double lon=0 );
|
---|
56 | //! Destructor
|
---|
57 | virtual ~Node();
|
---|
58 | };
|
---|
59 |
|
---|
60 |
|
---|
61 | } // end namespace osm
|
---|
62 | #endif
|
---|