source: subversion/applications/lib/libosm/FeaturesParser.h @ 34393

Last change on this file since 34393 was 11684, checked in by nienhueser, 11 years ago

Less inline definitions. Start to document things (doxygen style)

File size: 667 bytes
Line 
1#ifndef FEATURESPARSER_H
2#define FEATURESPARSER_H
3
4#include "FeatureClassification.h"
5
6#include <expat.h>
7
8#include <cstdio>
9#include <cstdlib>
10#include <iostream>
11#include <string>
12
13namespace OSM
14{
15
16class FeaturesParser
17{
18public:
19        static FeatureClassification* parse(std::istream&);
20        static std::string getError();
21
22private:
23        static FeatureClassification* featureClassification;
24
25        static bool inDoc, inWays, inAreas;
26
27        static std::string error;
28
29        static void startElement(void *d, const XML_Char* name,
30                        const XML_Char** attrs);
31        static void endElement(void *d, const XML_Char* name);
32        static void characters(void*, const XML_Char* txt, int txtlen);
33};
34
35}
36
37#endif
Note: See TracBrowser for help on using the repository browser.