Public Member Functions
osmdb::ElementInsertion Class Reference

Responsible for inserting osm elements into database. More...

#include <ElementInsertion.h>

Inheritance diagram for osmdb::ElementInsertion:
osmdb::ElementImporter

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.

Detailed Description

Responsible for inserting osm elements into database.

Definition at line 21 of file ElementInsertion.h.


Constructor & Destructor Documentation

osmdb::ElementInsertion::ElementInsertion ( OsmDatabase db)
Parameters:
dbdatabase connection

Definition at line 14 of file ElementInsertion.cpp.

osmdb::ElementInsertion::~ElementInsertion ( ) [virtual]

Definition at line 31 of file ElementInsertion.cpp.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
ndnode 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.

Parameters:
relrelation 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.

Parameters:
wway to insert

Implements osmdb::ElementImporter.

Definition at line 44 of file ElementInsertion.cpp.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines