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 251 - (show annotations) (download) (as text)
Sat Sep 5 09:36:57 2009 UTC (15 years, 6 months ago) by amb
File MIME type: text/x-chdr
File size: 2390 byte(s)
Add some more file functions.

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/functions.h,v 1.39 2009-09-05 09:36:57 amb Exp $
3
4 Header file for function prototypes
5
6 Part of the Routino routing software.
7 ******************/ /******************
8 This file Copyright 2008,2009 Andrew M. Bishop
9
10 This program is free software: you can redistribute it and/or modify
11 it under the terms of the GNU Affero General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Affero General Public License for more details.
19
20 You should have received a copy of the GNU Affero General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 ***************************************/
23
24
25 #ifndef FUNCTIONS_H
26 #define FUNCTIONS_H /*+ To stop multiple inclusions. +*/
27
28 #include <stdio.h>
29
30 #include "types.h"
31 #include "profiles.h"
32 #include "results.h"
33
34
35 /* In files.c */
36
37 char *FileName(const char *dirname,const char *prefix, const char *name);
38
39 void *MapFile(const char *filename);
40 void UnmapFile(const char *filename,int delete);
41
42 int OpenFile(const char *filename);
43 int ReOpenFile(const char *filename);
44
45 int WriteFile(int fd,void *address,size_t length);
46 int ReadFile(int fd,void *address,size_t length);
47 int SeekFile(int fd,size_t position);
48
49 void CloseFile(int fd);
50
51 int DeleteFile(char *filename);
52
53
54 /* In optimiser.c */
55
56 Results *FindNormalRoute(Nodes *nodes,Segments *segments,Ways *ways,index_t start,index_t finish,Profile *profile);
57 Results *FindMiddleRoute(Nodes *supernodes,Segments *supersegments,Ways *superways,Results *begin,Results *end,Profile *profile);
58
59 Results *FindStartRoutes(Nodes *nodes,Segments *segments,Ways *ways,index_t start,Profile *profile);
60 Results *FindFinishRoutes(Nodes *nodes,Segments *segments,Ways *ways,index_t finish,Profile *profile);
61
62 Results *CombineRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Profile *profile);
63
64
65 /* In output.c */
66
67 void PrintRouteHead(const char *copyright);
68 void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Profile *profile);
69 void PrintRouteTail(void);
70
71
72 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.