Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /trunk/src/functions.h
Parent Directory
|
Revision Log
Revision 8 -
(hide annotations)
(download)
(as text)
Sun Jan 4 17:51:24 2009 UTC (16 years, 3 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, 3 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 | amb | 2 | /*************************************** |
2 | amb | 8 | $Header: /home/amb/CVS/routino/src/functions.h,v 1.4 2009-01-04 17:51:23 amb Exp $ |
3 | amb | 2 | |
4 | Header file for function prototypes | ||
5 | ******************/ /****************** | ||
6 | Written by Andrew M. Bishop | ||
7 | |||
8 | amb | 4 | This file Copyright 2008,2009 Andrew M. Bishop |
9 | amb | 2 | 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 | amb | 8 | void LoadNodeList(const char *filename); |
31 | void SaveNodeList(const char *filename); | ||
32 | amb | 2 | |
33 | Node *FindNode(node_t id); | ||
34 | |||
35 | void AppendNode(node_t id,latlong_t latitude,latlong_t longitude); | ||
36 | |||
37 | amb | 8 | void SortNodeList(void); |
38 | amb | 2 | |
39 | amb | 8 | |
40 | amb | 4 | /* In ways.c */ |
41 | |||
42 | amb | 8 | void LoadWayList(const char *filename); |
43 | void SaveWayList(const char *filename); | ||
44 | amb | 4 | |
45 | Way *FindWay(way_t id); | ||
46 | amb | 6 | const char *WayName(Way *way); |
47 | amb | 4 | |
48 | amb | 8 | void AppendWay(way_t id,const char *name,speed_t speed); |
49 | amb | 4 | |
50 | amb | 8 | void SortWayList(void); |
51 | amb | 4 | |
52 | amb | 8 | |
53 | amb | 2 | /* In segments.c */ |
54 | |||
55 | amb | 8 | void LoadSegmentList(const char *filename); |
56 | void SaveSegmentList(const char *filename); | ||
57 | amb | 2 | |
58 | Segment *FindFirstSegment(node_t node); | ||
59 | Segment *FindNextSegment(Segment *segment); | ||
60 | |||
61 | amb | 8 | void AppendSegment(node_t node1,node_t node2,way_t way); |
62 | amb | 2 | |
63 | amb | 8 | void SortSegmentList(void); |
64 | amb | 2 | |
65 | amb | 8 | void FixupSegmentLengths(void); |
66 | amb | 2 | |
67 | amb | 8 | distance_t Distance(Node *node1,Node *node2); |
68 | |||
69 | |||
70 | amb | 2 | /* 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. |