/home/martin/workspace/OpenStreetNav/src/osmdb/ElementImporter.h
Go to the documentation of this file.
00001 /*
00002  * ElementImporter.h
00003  *
00004  *  Created on: Jan 7, 2012
00005  *      Author: martin
00006  */
00007 
00008 #ifndef ELEMENTIMPORTER_H_
00009 #define ELEMENTIMPORTER_H_
00010 
00011 #include "../elements/osmelements.h"
00012 
00013 namespace osmdb
00014 {
00015 
00020 class ElementImporter
00021 {
00022 public:
00023     virtual void insert_node(osm::Node const& nd) = 0;
00024     virtual void insert_way(osm::Way const& w) = 0;
00025     virtual void insert_relation(osm::Relation const& rel) = 0;
00026 
00033     virtual void insert_member_node(int64_t rel_id, std::string const& role, int64_t node_id) = 0;
00040     virtual void insert_member_way(int64_t rel_id, std::string const& role, int64_t way_id) = 0;
00047     virtual void insert_member_relation(int64_t parent_id, std::string const& role, int64_t child_id) = 0;
00048     virtual ~ElementImporter();
00049 };
00050 
00051 } /* namespace osmdb */
00052 #endif /* ELEMENTIMPORTER_H_ */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines