navit  0.5.3-trunk
vehicleprofile.h File Reference

Go to the source code of this file.

Data Structures

struct  vehicleprofile
 

Enumerations

enum  maxspeed_handling { maxspeed_enforce = 0 , maxspeed_restrict = 1 , maxspeed_ignore = 2 }
 

Functions

struct vehicleprofilevehicleprofile_new (struct attr *parent, struct attr **attrs)
 
struct attr_itervehicleprofile_attr_iter_new (void *unused)
 
void vehicleprofile_attr_iter_destroy (struct attr_iter *iter)
 
int vehicleprofile_get_attr (struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
 
int vehicleprofile_set_attr (struct vehicleprofile *this_, struct attr *attr)
 
int vehicleprofile_add_attr (struct vehicleprofile *this_, struct attr *attr)
 
int vehicleprofile_remove_attr (struct vehicleprofile *this_, struct attr *attr)
 
struct roadprofilevehicleprofile_get_roadprofile (struct vehicleprofile *this_, enum item_type type)
 
char * vehicleprofile_get_name (struct vehicleprofile *this_)
 Returns the vehicle profile's name. More...
 

Enumeration Type Documentation

◆ maxspeed_handling

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Enumerator
maxspeed_enforce 

Always enforce maxspeed of segment

maxspeed_restrict 

Enforce maxspeed of segment only if it restricts the speed

maxspeed_ignore 

Ignore maxspeed of segment, always use

route_weight

of road profile

Function Documentation

◆ vehicleprofile_add_attr()

int vehicleprofile_add_attr ( struct vehicleprofile this_,
struct attr attr 
)

◆ vehicleprofile_attr_iter_destroy()

void vehicleprofile_attr_iter_destroy ( struct attr_iter iter)

◆ vehicleprofile_attr_iter_new()

struct attr_iter* vehicleprofile_attr_iter_new ( void *  unused)

◆ vehicleprofile_get_attr()

int vehicleprofile_get_attr ( struct vehicleprofile this_,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)

◆ vehicleprofile_get_name()

char* vehicleprofile_get_name ( struct vehicleprofile this_)

Returns the vehicle profile's name.

References vehicleprofile::name.

◆ vehicleprofile_get_roadprofile()

struct roadprofile* vehicleprofile_get_roadprofile ( struct vehicleprofile this_,
enum item_type  type 
)

◆ vehicleprofile_new()

◆ vehicleprofile_remove_attr()

int vehicleprofile_remove_attr ( struct vehicleprofile this_,
struct attr attr 
)

◆ vehicleprofile_set_attr()

int vehicleprofile_set_attr ( struct vehicleprofile this_,
struct attr attr 
)