navit  0.5.3-trunk
roadprofile.c File Reference
#include <glib.h>
#include "debug.h"
#include "item.h"
#include "xmlconfig.h"
#include "roadprofile.h"

Functions

static void roadprofile_set_attr_do (struct roadprofile *this, struct attr *attr)
 
struct roadprofileroadprofile_new (struct attr *parent, struct attr **attrs)
 
int roadprofile_get_attr (struct roadprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
 
int roadprofile_set_attr (struct roadprofile *this_, struct attr *attr)
 
int roadprofile_add_attr (struct roadprofile *this_, struct attr *attr)
 
int roadprofile_remove_attr (struct roadprofile *this_, struct attr *attr)
 
struct attr_iterroadprofile_attr_iter_new (void *unused)
 
void roadprofile_attr_iter_destroy (struct attr_iter *iter)
 
static struct roadprofileroadprofile_dup (struct roadprofile *this_)
 
static void roadprofile_destroy (struct roadprofile *this_)
 

Variables

struct object_func roadprofile_func
 

Function Documentation

◆ roadprofile_add_attr()

int roadprofile_add_attr ( struct roadprofile this_,
struct attr attr 
)

◆ roadprofile_attr_iter_destroy()

void roadprofile_attr_iter_destroy ( struct attr_iter iter)

◆ roadprofile_attr_iter_new()

struct attr_iter* roadprofile_attr_iter_new ( void *  unused)

◆ roadprofile_destroy()

static void roadprofile_destroy ( struct roadprofile this_)
static

References attr_list_free().

◆ roadprofile_dup()

static struct roadprofile* roadprofile_dup ( struct roadprofile this_)
static

References attr_list_dup().

◆ roadprofile_get_attr()

int roadprofile_get_attr ( struct roadprofile this_,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)

◆ roadprofile_new()

struct roadprofile* roadprofile_new ( struct attr parent,
struct attr **  attrs 
)

◆ roadprofile_remove_attr()

int roadprofile_remove_attr ( struct roadprofile this_,
struct attr attr 
)

◆ roadprofile_set_attr()

int roadprofile_set_attr ( struct roadprofile this_,
struct attr attr 
)

◆ roadprofile_set_attr_do()

static void roadprofile_set_attr_do ( struct roadprofile this,
struct attr attr 
)
static

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.

References attr::num, attr::type, and attr::u.

Referenced by roadprofile_new(), and roadprofile_set_attr().

Variable Documentation

◆ roadprofile_func

struct object_func roadprofile_func
Initial value:
= {
attr_roadprofile,
}
struct roadprofile * roadprofile_new(struct attr *parent, struct attr **attrs)
Definition: roadprofile.c:43
int roadprofile_get_attr(struct roadprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: roadprofile.c:56
int roadprofile_add_attr(struct roadprofile *this_, struct attr *attr)
Definition: roadprofile.c:66
static void roadprofile_destroy(struct roadprofile *this_)
Definition: roadprofile.c:93
int roadprofile_remove_attr(struct roadprofile *this_, struct attr *attr)
Definition: roadprofile.c:71
static struct roadprofile * roadprofile_dup(struct roadprofile *this_)
Definition: roadprofile.c:85
void roadprofile_attr_iter_destroy(struct attr_iter *iter)
Definition: roadprofile.c:81
int roadprofile_set_attr(struct roadprofile *this_, struct attr *attr)
Definition: roadprofile.c:60
struct attr_iter * roadprofile_attr_iter_new(void *unused)
Definition: roadprofile.c:77
void * navit_object_unref(struct navit_object *obj)
Definition: xmlconfig.c:1313
struct navit_object * navit_object_ref(struct navit_object *obj)
Definition: xmlconfig.c:1307
void(* object_func_iter_destroy)(struct attr_iter *)
Definition: xmlconfig.h:57
void *(* object_func_new)(struct attr *parent, struct attr **attrs)
Definition: xmlconfig.h:54
int(* object_func_remove_attr)(void *, struct attr *attr)
Definition: xmlconfig.h:60
void *(* object_func_ref)(void *)
Definition: xmlconfig.h:64
struct attr_iter *(* object_func_iter_new)(void *)
Definition: xmlconfig.h:56
int(* object_func_init)(void *)
Definition: xmlconfig.h:61
void *(* object_func_dup)(void *)
Definition: xmlconfig.h:63
int(* object_func_add_attr)(void *, struct attr *attr)
Definition: xmlconfig.h:59
void(* object_func_destroy)(void *)
Definition: xmlconfig.h:62
int(* object_func_set_attr)(void *, struct attr *attr)
Definition: xmlconfig.h:58
int(* object_func_get_attr)(void *, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: xmlconfig.h:55
void *(* object_func_unref)(void *)
Definition: xmlconfig.h:65

Referenced by object_func_lookup(), and roadprofile_new().