Test Program for KMLParser lib

Dependencies:   mbed

Committer:
p3p
Date:
Sat Jul 21 20:12:13 2012 +0000
Revision:
1:42b9ab247a97
Parent:
0:94bd20b96349
Library Published

Who changed what in which revision?

UserRevisionLine numberNew contents of line
p3p 0:94bd20b96349 1 #include "mbed.h"
p3p 0:94bd20b96349 2 #include "KMLParser.h"
p3p 0:94bd20b96349 3
p3p 0:94bd20b96349 4 Serial debug(USBTX, USBRX);
p3p 0:94bd20b96349 5
p3p 0:94bd20b96349 6 LocalFileSystem local("local");
p3p 0:94bd20b96349 7
p3p 0:94bd20b96349 8 int main() {
p3p 0:94bd20b96349 9 debug.baud(115200);
p3p 0:94bd20b96349 10
p3p 0:94bd20b96349 11
p3p 0:94bd20b96349 12 FILE *fp = fopen("/local/waypoint.kml", "r");
p3p 0:94bd20b96349 13 KMLParser parse(fp);
p3p 0:94bd20b96349 14 if(parse._tree){
p3p 0:94bd20b96349 15 parse._tree->debug_printf();
p3p 0:94bd20b96349 16 }
p3p 0:94bd20b96349 17 fclose(fp);
p3p 0:94bd20b96349 18 debug.printf("FINISH!\r\n");
p3p 0:94bd20b96349 19 }