Navit SVN

/work/compile/navit/src/navit/vehicleprofile.h

00001 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 struct vehicleprofile {
00025         int mode;                               
00026         int flags_forward_mask;                 
00027         int flags_reverse_mask;                 
00028         int flags;                              
00029         int maxspeed_handling;                  
00030         int static_speed;                       
00031         int static_distance;                    
00032         char *name;                             
00033         int width;                              
00034         int height;                             
00035         int length;                             
00036         int weight;                             
00037         int axle_weight;                        
00038         int dangerous_goods;                    
00039         int through_traffic_penalty;            
00040         struct attr **attrs;
00041         GHashTable *roadprofile_hash;
00042 };
00043 
00044 struct vehicleprofile * vehicleprofile_new(struct attr *parent, struct attr **attrs);
00045 int vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
00046 int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr);
00047 int vehicleprofile_add_attr(struct vehicleprofile *this_, struct attr *attr);
00048 int vehicleprofile_remove_attr(struct vehicleprofile *this_, struct attr *attr);
00049 struct roadprofile * vehicleprofile_get_roadprofile(struct vehicleprofile *this_, enum item_type type);
00050 
00052 char * vehicleprofile_get_name(struct vehicleprofile *this_);
00053 #ifdef __cplusplus
00054 }
00055 #endif