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

Revision 11682, 688 bytes checked in by nienhueser, 5 years ago (diff)

No 'using xy' declarations in headers
Reorder includes with local files on top, and methods by decreasing publicity

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        {
22                return error;
23        }
24
25private:
26        static FeatureClassification* featureClassification;
27
28        static bool inDoc, inWays, inAreas;
29
30        static std::string error;
31
32        static void startElement(void *d, const XML_Char* name,
33                        const XML_Char** attrs);
34        static void endElement(void *d, const XML_Char* name);
35        static void characters(void*, const XML_Char* txt, int txtlen);
36};
37
38}
39
40#endif
Note: See TracBrowser for help on using the repository browser.