Routino SVN Repository Browser

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

ViewVC logotype

Annotation of /trunk/src/functions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations) (download) (as text)
Sun Feb 1 17:11:08 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 2152 byte(s)
Rename some variable types.

1 amb 2 /***************************************
2 amb 97 $Header: /home/amb/CVS/routino/src/functions.h,v 1.26 2009-02-01 17:11:07 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 amb 97 #include "types.h"
21 amb 26 #include "nodes.h"
22 amb 82 #include "segments.h"
23 amb 26 #include "ways.h"
24 amb 82 #include "profiles.h"
25 amb 31 #include "results.h"
26 amb 2
27 amb 26
28 amb 2 /* In osmparser.c */
29    
30 amb 97 int ParseXML(FILE *file,NodesX *OSMNodes,SegmentsX *OSMSegments,WaysX *OSMWays,Profile *profile);
31 amb 2
32    
33     /* In files.c */
34    
35     void *MapFile(const char *filename);
36    
37 amb 87 int OpenFile(const char *filename);
38 amb 97 int WriteFile(int fd,void *address,size_t length);
39     void CloseFile(int fd);
40 amb 2
41 amb 87
42 amb 2 /* In optimiser.c */
43    
44 amb 96 Results *FindRoute(Nodes *nodes,Segments *segments,Ways *ways,index_t start,index_t finish,Profile *profile,int all);
45     Results *FindRoute3(Nodes *supernodes,Segments *supersegments,Ways *superways,index_t start,index_t finish,Results *begin,Results *end,Profile *profile);
46 amb 2
47 amb 96 void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,index_t start,index_t finish,Profile *profile);
48 amb 25
49 amb 96 Results *FindRoutes(Nodes *nodes,Segments *segments,Ways *ways,index_t start,Profile *profile);
50     Results *FindReverseRoutes(Nodes *nodes,Segments *segments,Ways *ways,index_t finish,Profile *profile);
51 amb 31
52 amb 96 Results *CombineRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,index_t start,index_t finish,Profile *profile);
53 amb 31
54    
55 amb 54 /* Functions in supersegments.c */
56    
57 amb 97 void ChooseSuperNodes(NodesX *nodesx,SegmentsX *segmentsx,WaysX *waysx,int iteration);
58 amb 54
59 amb 97 SegmentsX *CreateSuperSegments(NodesX *nodesx,SegmentsX *segmentsx,WaysX *waysx,int iteration);
60 amb 54
61 amb 97 Results *FindRoutesWay(NodesX *nodesx,SegmentsX *segmentsx,WaysX *waysx,node_t start,WayX *match,int iteration);
62 amb 54
63 amb 97
64 amb 2 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.