Rev 338 | Rev 764 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 338 | Rev 532 | ||
---|---|---|---|
1 | //________________________________________________________________________________________________________________________________________ |
1 | //________________________________________________________________________________________________________________________________________ |
2 | // |
2 | // |
3 | // Definition of gpx-header and footer elements for documents |
3 | // Definition of gpx-header and footer elements for documents |
4 | // |
4 | // |
5 | //________________________________________________________________________________________________________________________________________ |
5 | //________________________________________________________________________________________________________________________________________ |
6 | /* |
6 | /* |
7 | const s8 GPX_DOCUMENT_HEADER[] = |
7 | const s8 GPX_DOCUMENT_HEADER[] = |
8 | { |
8 | { |
9 | "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n" |
9 | "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n" |
10 | "<gpx creator=\"NC\" version=\"1.0\" >\r\n" |
10 | "<gpx creator=\"NC\" version=\"1.0\" >\r\n" |
11 | "\r\n" |
11 | "\r\n" |
12 | "<metadata>\r\n" |
12 | "<metadata>\r\n" |
13 | "<link href=\"http://www.mikrokopter.de\">\r\n" |
13 | "<link href=\"http://www.mikrokopter.de\">\r\n" |
14 | "<text>MikroKopter</text>\r\n" |
14 | "<text>MikroKopter</text>\r\n" |
15 | "</link>\r\n" |
15 | "</link>\r\n" |
16 | "</metadata>\r\n" |
16 | "</metadata>\r\n" |
17 | "\r\n" |
17 | "\r\n" |
18 | }; |
18 | }; |
19 | */ |
19 | */ |
20 | const s8 GPX_DOCUMENT_HEADER1[] = |
20 | const s8 GPX_DOCUMENT_HEADER1[] = |
21 | { |
21 | { |
22 | "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n" |
22 | "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n" |
23 | "<gpx creator=\"NC\" version=\"2.0\" >\r\n" |
23 | "<gpx creator=\"NC\" version=\"2.0\" >\r\n" |
24 | "\r\n" |
24 | "\r\n" |
25 | "<metadata>\r\n" |
25 | "<metadata>\r\n" |
26 | "<link href=\"http://www.mikrokopter.de\">\r\n" |
26 | "<link href=\"http://www.mikrokopter.de\">\r\n" |
27 | "<text>MikroKopter</text>\r\n" |
27 | "<text>MikroKopter</text>\r\n" |
28 | "</link>\r\n" |
28 | "</link>\r\n" |
29 | }; |
29 | }; |
30 | 30 | ||
31 | const s8 GPX_DOCUMENT_HEADER2[] = |
31 | const s8 GPX_DOCUMENT_METADATA_END[] = |
32 | { |
32 | { |
33 | "</metadata>\r\n" |
33 | "</metadata>\r\n" |
34 | "\r\n" |
34 | "\r\n" |
35 | }; |
35 | }; |
36 | 36 | ||
37 | 37 | ||
38 | //________________________________________________________________________________________________________________________________________ |
38 | //________________________________________________________________________________________________________________________________________ |
39 | // |
39 | // |
40 | // footer of an gpx-file. |
40 | // footer of an gpx-file. |
41 | // |
41 | // |
42 | //________________________________________________________________________________________________________________________________________ |
42 | //________________________________________________________________________________________________________________________________________ |
43 | const s8 GPX_DOCUMENT_FOOTER[] = |
43 | const s8 GPX_DOCUMENT_FOOTER[] = |
44 | { |
44 | { |
45 | "</gpx>\r\n" |
45 | "</gpx>\r\n" |
46 | }; |
46 | }; |
47 | 47 | ||
48 | //________________________________________________________________________________________________________________________________________ |
48 | //________________________________________________________________________________________________________________________________________ |
49 | // |
49 | // |
50 | // Header of a track |
50 | // Header of a track |
51 | // |
51 | // |
52 | //________________________________________________________________________________________________________________________________________ |
52 | //________________________________________________________________________________________________________________________________________ |
53 | 53 | ||
54 | const s8 GPX_TRACK_HEADER[] = |
54 | const s8 GPX_TRACK_HEADER[] = |
55 | { |
55 | { |
56 | "<trk>\r\n" |
56 | "<trk>\r\n" |
57 | "<name>Flight</name>\r\n" |
57 | "<name>Flight</name>\r\n" |
58 | }; |
58 | }; |
59 | 59 | ||
60 | //________________________________________________________________________________________________________________________________________ |
60 | //________________________________________________________________________________________________________________________________________ |
61 | // |
61 | // |
62 | // Footer of a track |
62 | // Footer of a track |
63 | // |
63 | // |
64 | //________________________________________________________________________________________________________________________________________ |
64 | //________________________________________________________________________________________________________________________________________ |
65 | const s8 GPX_TRACK_FOOTER[] = |
65 | const s8 GPX_TRACK_FOOTER[] = |
66 | { |
66 | { |
67 | "</trk>\r\n" |
67 | "</trk>\r\n" |
68 | }; |
68 | }; |
69 | 69 | ||
70 | //________________________________________________________________________________________________________________________________________ |
70 | //________________________________________________________________________________________________________________________________________ |
71 | // |
71 | // |
72 | // Header of a track segment |
72 | // Header of a track segment |
73 | // |
73 | // |
74 | //________________________________________________________________________________________________________________________________________ |
74 | //________________________________________________________________________________________________________________________________________ |
75 | const s8 GPX_TRACKSEGMENT_HEADER[] = |
75 | const s8 GPX_TRACKSEGMENT_HEADER[] = |
76 | { |
76 | { |
77 | "<trkseg>\r\n" |
77 | "<trkseg>\r\n" |
78 | }; |
78 | }; |
79 | 79 | ||
80 | //________________________________________________________________________________________________________________________________________ |
80 | //________________________________________________________________________________________________________________________________________ |
81 | // |
81 | // |
82 | // Footer of a track segment |
82 | // Footer of a track segment |
83 | // |
83 | // |
84 | //________________________________________________________________________________________________________________________________________ |
84 | //________________________________________________________________________________________________________________________________________ |
85 | const s8 GPX_TRACKSEGMENT_FOOTER[] = |
85 | const s8 GPX_TRACKSEGMENT_FOOTER[] = |
86 | { |
86 | { |
87 | "</trkseg>\r\n" |
87 | "</trkseg>\r\n" |
88 | }; |
88 | }; |
89 | 89 | ||
90 | 90 |