Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/src/functions.h
Parent Directory
|
Revision Log
Revision 54 -
(show annotations)
(download)
(as text)
Sun Jan 18 16:04:09 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 2163 byte(s)
Sun Jan 18 16:04:09 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 2163 byte(s)
Added Super-Ways and allow user to select method of transport.
1 | /*************************************** |
2 | $Header: /home/amb/CVS/routino/src/functions.h,v 1.11 2009-01-18 16:03:45 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); |
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,wayallow_t transport); |
43 | Results *FindRoute3(Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,Results *begin,Results *end,wayallow_t transport); |
44 | |
45 | void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish); |
46 | |
47 | Results *FindRoutes(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,wayallow_t transport); |
48 | Results *FindReverseRoutes(Nodes *nodes,Segments *segments,Ways *ways,Nodes *start,node_t finish,wayallow_t transport); |
49 | |
50 | void PrintRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,Segments *supersegments,node_t start,node_t finish,wayallow_t transport); |
51 | |
52 | Results *FindRoutesWay(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,Way *match); |
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); |
60 | |
61 | WaysMem *CreateSuperWays(Ways *ways,SegmentsMem *supersegments); |
62 | |
63 | |
64 | #endif /* FUNCTIONS_H */ |
Properties
Name | Value |
---|---|
cvs:description | Function prototypes. |