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 8 -
(show annotations)
(download)
(as text)
Sun Jan 4 17:51:24 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 1810 byte(s)
Sun Jan 4 17:51:24 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 1810 byte(s)
Changed the node, way and segment functions and data types. Removed 'alloced', shortened the prototype array. Remove the automatic sorting of the data. Added assert statements.
1 | /*************************************** |
2 | $Header: /home/amb/CVS/routino/src/functions.h,v 1.4 2009-01-04 17:51:23 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 "types.h" |
21 | |
22 | |
23 | /* In osmparser.c */ |
24 | |
25 | int ParseXML(FILE *file); |
26 | |
27 | |
28 | /* In nodes.c */ |
29 | |
30 | void LoadNodeList(const char *filename); |
31 | void SaveNodeList(const char *filename); |
32 | |
33 | Node *FindNode(node_t id); |
34 | |
35 | void AppendNode(node_t id,latlong_t latitude,latlong_t longitude); |
36 | |
37 | void SortNodeList(void); |
38 | |
39 | |
40 | /* In ways.c */ |
41 | |
42 | void LoadWayList(const char *filename); |
43 | void SaveWayList(const char *filename); |
44 | |
45 | Way *FindWay(way_t id); |
46 | const char *WayName(Way *way); |
47 | |
48 | void AppendWay(way_t id,const char *name,speed_t speed); |
49 | |
50 | void SortWayList(void); |
51 | |
52 | |
53 | /* In segments.c */ |
54 | |
55 | void LoadSegmentList(const char *filename); |
56 | void SaveSegmentList(const char *filename); |
57 | |
58 | Segment *FindFirstSegment(node_t node); |
59 | Segment *FindNextSegment(Segment *segment); |
60 | |
61 | void AppendSegment(node_t node1,node_t node2,way_t way); |
62 | |
63 | void SortSegmentList(void); |
64 | |
65 | void FixupSegmentLengths(void); |
66 | |
67 | distance_t Distance(Node *node1,Node *node2); |
68 | |
69 | |
70 | /* In files.c */ |
71 | |
72 | void *MapFile(const char *filename); |
73 | |
74 | void UnMapFile(void *address); |
75 | |
76 | int WriteFile(const char *filename,void *address,size_t length); |
77 | |
78 | |
79 | /* In optimiser.c */ |
80 | |
81 | void FindRoute(node_t start,node_t finish); |
82 | void PrintRoute(node_t start,node_t finish); |
83 | |
84 | #endif /* FUNCTIONS_H */ |
Properties
Name | Value |
---|---|
cvs:description | Function prototypes. |