Responsible for inserting osm elements into database. More...
#include <ElementInsertion.h>
Public Member Functions | |
ElementInsertion (OsmDatabase &db) | |
virtual | ~ElementInsertion () |
void | insert_node (osm::Node const &nd) |
Inserts node into database. | |
void | insert_way (osm::Way const &w) |
Inserts way into database. | |
void | insert_relation (osm::Relation const &rel) |
Inserts relation into database. | |
void | insert_member_node (int64_t rel_id, std::string const &role, int64_t node_id) |
This gets called automatically when importing relation so you shouldn't need to call it. | |
void | insert_member_way (int64_t rel_id, std::string const &role, int64_t way_id) |
This gets called automatically when importing relation so you shouldn't need to call it. | |
void | insert_member_relation (int64_t parent_id, std::string const &role, int64_t child_id) |
This gets called automatically when importing relation so you shouldn't need to call it. |
Responsible for inserting osm elements into database.
Definition at line 21 of file ElementInsertion.h.
osmdb::ElementInsertion::ElementInsertion | ( | OsmDatabase & | db | ) |
db | database connection |
Definition at line 14 of file ElementInsertion.cpp.
osmdb::ElementInsertion::~ElementInsertion | ( | ) | [virtual] |
Definition at line 31 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_member_node | ( | int64_t | rel_id, |
std::string const & | role, | ||
int64_t | node_id | ||
) | [virtual] |
This gets called automatically when importing relation so you shouldn't need to call it.
parent_id | |
role | |
child_id |
Implements osmdb::ElementImporter.
Definition at line 73 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_member_relation | ( | int64_t | parent_id, |
std::string const & | role, | ||
int64_t | child_id | ||
) | [virtual] |
This gets called automatically when importing relation so you shouldn't need to call it.
parent_id | |
role | |
child_id |
Implements osmdb::ElementImporter.
Definition at line 83 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_member_way | ( | int64_t | rel_id, |
std::string const & | role, | ||
int64_t | way_id | ||
) | [virtual] |
This gets called automatically when importing relation so you shouldn't need to call it.
parent_id | |
role | |
child_id |
Implements osmdb::ElementImporter.
Definition at line 78 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_node | ( | osm::Node const & | nd | ) | [virtual] |
Inserts node into database.
nd | node to insert |
Implements osmdb::ElementImporter.
Definition at line 35 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_relation | ( | osm::Relation const & | rel | ) | [virtual] |
Inserts relation into database.
rel | relation to insert |
Implements osmdb::ElementImporter.
Definition at line 60 of file ElementInsertion.cpp.
void osmdb::ElementInsertion::insert_way | ( | osm::Way const & | w | ) | [virtual] |
Inserts way into database.
w | way to insert |
Implements osmdb::ElementImporter.
Definition at line 44 of file ElementInsertion.cpp.