#include #include #include #include #include #include "osm.h" #include class osmparser { private: static osm_item *cur_item; static long curID; static bool in_node, in_way; static osm_dataset* components; static std::string error; static std::map tmp_node_store; public: static void processNode(xmlTextReaderPtr reader); static void startElement(xmlTextReaderPtr reader, const xmlChar *name); static void endElement(const xmlChar* name); static bool parse(osm_dataset *ds, const char* filename); };