navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
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
struct coord c
Definition: csv.h:49
int no_warning_if_map_file_missing
Definition: textfile.h:31
char * args
Definition: textfile.h:53
struct map_priv * m
Definition: binfile.c:144
Definition: attr.c:47
Definition: item.h:99
int id
Definition: binfile.c:106
int flags
Definition: binfile.c:125
long pos
Definition: garmin_img.c:261
struct map_selection * sel
Definition: binfile.c:143
Represents the map from a single binfile.
Definition: binfile.c:105
int is_pipe
Definition: textfile.h:30
Definition: binfile.c:137
char * filename
Filename of the binfile.
Definition: binfile.c:107
int lastlen
Definition: textfile.h:54
enum attr_type attr_last
Definition: binfile.c:140
Definition: attr.h:156
Used to select data from a map.
Definition: map.h:57
int attr_pos
Definition: garmin_img.c:263
char line[256]
Definition: garmin_img.c:262
struct attr attrs[8]
Definition: binfile.c:151
#define TEXTFILE_LINE_SIZE
Definition: textfile.h:35
char * charset
Definition: csv.h:42
int more
Definition: textfile.h:50
FILE * f
Definition: garmin_img.c:260
Definition: coord.h:34
int eoc
Definition: garmin_img.c:269