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/profiles.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 96 - (show annotations) (download) (as text)
Sat Jan 31 15:32:42 2009 UTC (16 years, 1 month ago) by amb
File MIME type: text/x-chdr
File size: 1312 byte(s)
Intermediate version during code cleanup.

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/profiles.h,v 1.2 2009-01-31 15:32:41 amb Exp $
3
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 #include "types.h"
19
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 #endif /* PROFILES_H */

Properties

Name Value
cvs:description Header file for profiles.