Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/src/osmparser.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1526 - (show annotations) (download) (as text)
Mon Mar 17 19:14:32 2014 UTC (11 years ago) by amb
File MIME type: text/x-chdr
File size: 2228 byte(s)
Make two global functions local to the files that contain them.

1 /***************************************
2 Header file for OSM parser function prototype.
3
4 Part of the Routino routing software.
5 ******************/ /******************
6 This file Copyright 2008-2014 Andrew M. Bishop
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero 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 Affero General Public License for more details.
17
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ***************************************/
21
22
23 #ifndef OSMPARSER_H
24 #define OSMPARSER_H /*+ To stop multiple inclusions. +*/
25
26 #include <stdint.h>
27
28 #include "typesx.h"
29 #include "xmlparse.h"
30 #include "tagging.h"
31
32
33 /* Constants */
34
35 #define MODE_NORMAL 3
36 #define MODE_CREATE 2
37 #define MODE_MODIFY 1
38 #define MODE_DELETE -1
39
40
41 /* Functions in osmxmlparse.c */
42
43 int ParseOSMFile(int fd,NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
44
45 int ParseOSCFile(int fd,NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
46
47
48 /* Functions in osmpbfparse.c */
49
50 int ParsePBFFile(int fd,NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
51
52
53 /* Functions in osmo5mparse.c */
54
55 int ParseO5MFile(int fd,NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
56
57 int ParseO5CFile(int fd,NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
58
59
60 /* Functions in osmparser.c */
61
62 void InitialiseParser(NodesX *OSMNodes,WaysX *OSMWays,RelationsX *OSMRelations);
63 void CleanupParser(void);
64
65 void AddWayRefs(int64_t node_id);
66 void AddRelationRefs(int64_t node_id,int64_t way_id,int64_t relation_id,const char *role);
67
68 void ProcessNodeTags(TagList *tags,int64_t node_id,double latitude,double longitude,int mode);
69 void ProcessWayTags(TagList *tags,int64_t way_id, int mode);
70 void ProcessRelationTags(TagList *tags,int64_t relation_id,int mode);
71
72
73 #endif /* OSMPARSER_H */

Properties

Name Value
cvs:description Functions for extended data types.