"Fossies" - the Fresh Open Source Software Archive

Member "navit-0.5.6/navit/mapset.h" (6 Mar 2021, 2323 Bytes) of package /linux/privat/navit-0.5.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mapset.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 0.5.5_vs_0.5.6.

    1 /**
    2  * Navit, a modular navigation system.
    3  * Copyright (C) 2005-2008 Navit Team
    4  *
    5  * This program is free software; you can redistribute it and/or
    6  * modify it under the terms of the GNU Library General Public License
    7  * version 2 as published by the Free Software Foundation.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU Library General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU Library General Public
   15  * License along with this program; if not, write to the
   16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   17  * Boston, MA  02110-1301, USA.
   18  */
   19 
   20 #ifndef NAVIT_MAPSET_H
   21 #define NAVIT_MAPSET_H
   22 
   23 #ifdef __cplusplus
   24 extern "C" {
   25 #endif
   26 
   27 /* prototypes */
   28 enum attr_type;
   29 struct attr;
   30 struct attr_iter;
   31 struct item;
   32 struct map;
   33 
   34 /**
   35  * @brief A mapset.
   36  *
   37  * A mapset is a collection of (one or more) maps. This allows you to combine data from multiple maps, e.g. one map
   38  * with the road network and another with special POIs.
   39  */
   40 struct mapset;
   41 
   42 struct mapset_handle;
   43 struct mapset_search;
   44 struct mapset *mapset_new(struct attr *parent, struct attr **attrs);
   45 struct mapset *mapset_dup(struct mapset *ms);
   46 struct attr_iter *mapset_attr_iter_new(void * unused);
   47 void mapset_attr_iter_destroy(struct attr_iter *iter);
   48 int mapset_add_attr(struct mapset *ms, struct attr *attr);
   49 int mapset_remove_attr(struct mapset *ms, struct attr *attr);
   50 int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter);
   51 void mapset_destroy(struct mapset *ms);
   52 struct map *mapset_get_map_by_name(struct mapset *ms, const char*map_name);
   53 struct mapset_handle *mapset_open(struct mapset *ms);
   54 struct map *mapset_next(struct mapset_handle *msh, int active);
   55 void mapset_close(struct mapset_handle *msh);
   56 struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
   57 struct item *mapset_search_get_item(struct mapset_search *this_);
   58 void mapset_search_destroy(struct mapset_search *this_);
   59 struct mapset * mapset_ref(struct mapset* m);
   60 void mapset_unref(struct mapset *m);
   61 /* end of prototypes */
   62 #ifdef __cplusplus
   63 }
   64 #endif
   65 #endif