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/functions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (show annotations) (download) (as text)
Fri Jan 23 17:09:41 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 2333 byte(s)
Add command line options to planetsplitter and router.
Select transport type (must be allowed on way for parsing).
Select highway types (ignore when parsing or routing).

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/functions.h,v 1.17 2009-01-23 17:09:41 amb Exp $
3
4 Header file for function prototypes
5 ******************/ /******************
6 Written by Andrew M. Bishop
7
8 This file Copyright 2008,2009 Andrew M. Bishop
9 It may be distributed under the GNU Public License, version 2, or
10 any higher version. See section COPYING of the GNU Public license
11 for conditions under which this file may be redistributed.
12 ***************************************/
13
14
15 #ifndef FUNCTIONS_H
16 #define FUNCTIONS_H /*+ To stop multiple inclusions. +*/
17
18 #include <stdio.h>
19
20 #include "nodes.h"
21 #include "ways.h"
22 #include "segments.h"
23 #include "results.h"
24
25
26 /* In osmparser.c */
27
28 int ParseXML(FILE *file,NodesMem *OSMNodes,SegmentsMem *OSMSegments,WaysMem *OSMWays,Transport transport,int highways[]);
29
30
31 /* In files.c */
32
33 void *MapFile(const char *filename);
34
35 void UnMapFile(void *address);
36
37 int WriteFile(const char *filename,void *address,size_t length);
38
39
40 /* In optimiser.c */
41
42 Results *FindRoute(Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,transport_t transport,int highways[],int all);
43 Results *FindRoute3(Nodes *supernodes,Segments *supersegments,Ways *superways,node_t start,node_t finish,Results *begin,Results *end,transport_t transport,int highways[]);
44
45 void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,node_t start,node_t finish,transport_t transport);
46
47 Results *FindRoutes(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,transport_t transport,int highways[]);
48 Results *FindReverseRoutes(Nodes *nodes,Segments *segments,Ways *ways,Nodes *start,node_t finish,transport_t transport,int highways[]);
49
50 Results *CombineRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,transport_t transport,int highways[]);
51
52 Results *FindRoutesWay(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,Way *match,int iteration);
53
54
55 /* Functions in supersegments.c */
56
57 NodesMem *ChooseSuperNodes(Nodes *nodes,Segments *segments,Ways *ways);
58
59 SegmentsMem *CreateSuperSegments(Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,int iteration);
60
61 WaysMem *CreateSuperWays(Ways *ways,SegmentsMem *supersegments);
62
63
64 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.