navit  0.5.3-trunk
vehicleprofile.h
Go to the documentation of this file.
1 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 
30 };
31 
32 
35  int mode;
38  int flags;
42  char *name;
43  char *route_depth;
44  int width;
45  int height;
46  int length;
47  int weight;
51  GHashTable *roadprofile_hash;
52  struct attr active_callback;
55 };
56 
57 struct vehicleprofile * vehicleprofile_new(struct attr *parent, struct attr **attrs);
58 struct attr_iter *vehicleprofile_attr_iter_new(void * unused);
60 int vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr,
61  struct attr_iter *iter);
62 int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr);
63 int vehicleprofile_add_attr(struct vehicleprofile *this_, struct attr *attr);
64 int vehicleprofile_remove_attr(struct vehicleprofile *this_, struct attr *attr);
66 
68 char * vehicleprofile_get_name(struct vehicleprofile *this_);
69 #ifdef __cplusplus
70 }
71 #endif
attr_type
Definition: attr.h:34
char type[3]
Definition: garmin_img.c:2
item_type
Definition: item.h:29
Definition: config_.c:47
void * iter
Definition: config_.c:48
Definition: attr.h:157
Definition: gpx2navit_txt.h:51
Definition: roadprofile.h:24
Definition: vehicleprofile.h:33
char * name
Definition: vehicleprofile.h:42
NAVIT_OBJECT int mode
Definition: vehicleprofile.h:35
int length
Definition: vehicleprofile.h:46
int width
Definition: vehicleprofile.h:44
int through_traffic_penalty
Definition: vehicleprofile.h:50
int maxspeed_handling
Definition: vehicleprofile.h:39
int turn_around_penalty2
Definition: vehicleprofile.h:54
int axle_weight
Definition: vehicleprofile.h:48
GHashTable * roadprofile_hash
Definition: vehicleprofile.h:51
int height
Definition: vehicleprofile.h:45
int flags
Definition: vehicleprofile.h:38
int static_speed
Definition: vehicleprofile.h:40
int turn_around_penalty
Definition: vehicleprofile.h:53
int weight
Definition: vehicleprofile.h:47
int flags_forward_mask
Definition: vehicleprofile.h:36
int dangerous_goods
Definition: vehicleprofile.h:49
struct attr active_callback
Definition: vehicleprofile.h:52
char * route_depth
Definition: vehicleprofile.h:43
int static_distance
Definition: vehicleprofile.h:41
int flags_reverse_mask
Definition: vehicleprofile.h:37
void vehicleprofile_attr_iter_destroy(struct attr_iter *iter)
Definition: vehicleprofile.c:234
struct vehicleprofile * vehicleprofile_new(struct attr *parent, struct attr **attrs)
Definition: vehicleprofile.c:211
char * vehicleprofile_get_name(struct vehicleprofile *this_)
Returns the vehicle profile's name.
Definition: vehicleprofile.c:275
int vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: vehicleprofile.c:239
struct roadprofile * vehicleprofile_get_roadprofile(struct vehicleprofile *this_, enum item_type type)
Definition: vehicleprofile.c:271
struct attr_iter * vehicleprofile_attr_iter_new(void *unused)
Definition: vehicleprofile.c:230
int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr)
Definition: vehicleprofile.c:244
int vehicleprofile_add_attr(struct vehicleprofile *this_, struct attr *attr)
Definition: vehicleprofile.c:250
int vehicleprofile_remove_attr(struct vehicleprofile *this_, struct attr *attr)
Definition: vehicleprofile.c:265
maxspeed_handling
Definition: vehicleprofile.h:26
@ maxspeed_ignore
Definition: vehicleprofile.h:29
@ maxspeed_restrict
Definition: vehicleprofile.h:28
@ maxspeed_enforce
Definition: vehicleprofile.h:27
#define NAVIT_OBJECT
Definition: xmlconfig.h:121