Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /trunk/src/profiles.h
Parent Directory
|
Revision Log
Revision 129 -
(hide annotations)
(download)
(as text)
Fri Feb 27 20:16:47 2009 UTC (16 years, 1 month ago) by amb
File MIME type: text/x-chdr
File size: 1341 byte(s)
Fri Feb 27 20:16:47 2009 UTC (16 years, 1 month ago) by amb
File MIME type: text/x-chdr
File size: 1341 byte(s)
Print out Javascript code containing the profiles.
1 | amb | 83 | /*************************************** |
2 | amb | 129 | $Header: /home/amb/CVS/routino/src/profiles.h,v 1.3 2009-02-27 20:16:47 amb Exp $ |
3 | amb | 83 | |
4 | A header file for the profiles. | ||
5 | ******************/ /****************** | ||
6 | Written by Andrew M. Bishop | ||
7 | |||
8 | This file Copyright 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 PROFILES_H | ||
16 | #define PROFILES_H /*+ To stop multiple inclusions. +*/ | ||
17 | |||
18 | amb | 96 | #include "types.h" |
19 | amb | 83 | |
20 | |||
21 | /* Data structures */ | ||
22 | |||
23 | /*+ A data structure to hold a transport type profile. +*/ | ||
24 | typedef struct _Profile | ||
25 | { | ||
26 | Transport transport; /*+ The type of transport. +*/ | ||
27 | |||
28 | Allowed allow; /*+ The type of transport expressed as what must be allowed on a way. +*/ | ||
29 | |||
30 | int highways[Way_Unknown]; /*+ A flag to indicate if the transport is allowed on the highway. +*/ | ||
31 | |||
32 | speed_t speed[Way_Unknown]; /*+ The maximum speed on each type of highway. +*/ | ||
33 | |||
34 | int oneway; /*+ A flag to indicate if one-way restrictions apply. +*/ | ||
35 | } | ||
36 | Profile; | ||
37 | |||
38 | |||
39 | /* Functions */ | ||
40 | |||
41 | Profile *GetProfile(Transport transport); | ||
42 | |||
43 | void PrintProfile(const Profile *profile); | ||
44 | |||
45 | amb | 129 | void PrintProfilesJS(void); |
46 | |||
47 | amb | 83 | #endif /* PROFILES_H */ |
Properties
Name | Value |
---|---|
cvs:description | Header file for profiles. |