navit  0.5.3-trunk
textfile.h
Go to the documentation of this file.
1 
20 #include <stdio.h>
21 #include "attr.h"
22 #include "coord.h"
23 
24 #define TEXTFILE_COMMENT_CHAR '#'
25 
26 struct map_priv {
27  int id;
28  char *filename;
29  char *charset;
30  int is_pipe;
32  int flags;
33 };
34 
35 #define TEXTFILE_LINE_SIZE 512
36 
37 struct map_rect_priv {
38  struct map_selection *sel;
39 
40  FILE *f;
41  long pos;
43  int attr_pos;
44  enum attr_type attr_last;
48  struct coord c;
49  int eoc;
50  int more;
51  struct map_priv *m;
52  struct item item;
53  char *args;
54  int lastlen;
55 };
56 
attr_type
Definition: attr.h:34
Definition: attr.c:48
Definition: attr.h:157
Definition: coord.h:34
Represents an object on a map.
Definition: item.h:115
Represents the map from a single binfile.
Definition: binfile.c:105
int is_pipe
Definition: textfile.h:30
int flags
Definition: binfile.c:125
char * filename
Filename of the binfile.
Definition: binfile.c:107
int id
Definition: binfile.c:106
int no_warning_if_map_file_missing
Definition: textfile.h:31
char * charset
Definition: csv.h:40
Implementation-specific map rect data.
Definition: binfile.c:137
struct map_selection * sel
Definition: binfile.c:143
int attr_pos
Definition: garmin_img.c:248
int lastlen
Definition: textfile.h:54
int eoc
Definition: garmin_img.c:254
char * args
Definition: textfile.h:53
FILE * f
Definition: garmin_img.c:245
char line[256]
Definition: garmin_img.c:247
struct attr attrs[8]
Definition: binfile.c:151
struct map_priv * m
Definition: binfile.c:144
struct coord c
Definition: csv.h:47
long pos
Definition: garmin_img.c:246
int more
Definition: textfile.h:50
enum attr_type attr_last
Definition: binfile.c:140
Used to select data from a map.
Definition: map.h:58
#define TEXTFILE_LINE_SIZE
Definition: textfile.h:35