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 151 -
(hide annotations)
(download)
(as text)
Wed Apr 8 16:54:34 2009 UTC (16 years ago) by amb
File MIME type: text/x-chdr
File size: 2165 byte(s)
Wed Apr 8 16:54:34 2009 UTC (16 years ago) by amb
File MIME type: text/x-chdr
File size: 2165 byte(s)
Changed the license to Affero GPLv3.
1 | amb | 83 | /*************************************** |
2 | amb | 151 | $Header: /home/amb/CVS/routino/src/profiles.h,v 1.6 2009-04-08 16:54:34 amb Exp $ |
3 | amb | 83 | |
4 | A header file for the profiles. | ||
5 | amb | 151 | |
6 | Part of the Routino routing software. | ||
7 | amb | 83 | ******************/ /****************** |
8 | amb | 151 | This file Copyright 2008,2009 Andrew M. Bishop |
9 | amb | 83 | |
10 | amb | 151 | 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 | amb | 83 | ***************************************/ |
23 | |||
24 | |||
25 | #ifndef PROFILES_H | ||
26 | #define PROFILES_H /*+ To stop multiple inclusions. +*/ | ||
27 | |||
28 | amb | 96 | #include "types.h" |
29 | amb | 83 | |
30 | |||
31 | /* Data structures */ | ||
32 | |||
33 | /*+ A data structure to hold a transport type profile. +*/ | ||
34 | typedef struct _Profile | ||
35 | { | ||
36 | Transport transport; /*+ The type of transport. +*/ | ||
37 | |||
38 | Allowed allow; /*+ The type of transport expressed as what must be allowed on a way. +*/ | ||
39 | |||
40 | int highways[Way_Unknown]; /*+ A flag to indicate if the transport is allowed on the highway. +*/ | ||
41 | |||
42 | speed_t speed[Way_Unknown]; /*+ The maximum speed on each type of highway. +*/ | ||
43 | |||
44 | int oneway; /*+ A flag to indicate if one-way restrictions apply. +*/ | ||
45 | amb | 138 | |
46 | weight_t weight; /*+ The minimum weight of the route. +*/ | ||
47 | |||
48 | height_t height; /*+ The minimum height of vehicles on the route. +*/ | ||
49 | width_t width; /*+ The minimum width of vehicles on the route. +*/ | ||
50 | length_t length; /*+ The minimum length of vehicles on the route. +*/ | ||
51 | amb | 83 | } |
52 | Profile; | ||
53 | |||
54 | |||
55 | /* Functions */ | ||
56 | |||
57 | Profile *GetProfile(Transport transport); | ||
58 | |||
59 | void PrintProfile(const Profile *profile); | ||
60 | |||
61 | amb | 129 | void PrintProfilesJS(void); |
62 | |||
63 | amb | 145 | void PrintProfilesPerl(void); |
64 | |||
65 | amb | 83 | #endif /* PROFILES_H */ |
Properties
Name | Value |
---|---|
cvs:description | Header file for profiles. |