Public Member Functions
osmdb::ElementCopy Class Reference

Handles copying into the Import table of the database. More...

#include <ElementCopy.h>

Inheritance diagram for osmdb::ElementCopy:
osmdb::ElementImporter

Public Member Functions

 ElementCopy (OsmDatabase &db)
 Constructor.
void start_copy ()
void end_copy ()
void insert_node (osm::Node const &nd)
void insert_way (osm::Way const &w)
void insert_relation (osm::Relation const &rel)
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.
virtual ~ElementCopy ()

Detailed Description

Handles copying into the Import table of the database.

Definition at line 21 of file ElementCopy.h.


Constructor & Destructor Documentation

osmdb::ElementCopy::ElementCopy ( OsmDatabase db)

Constructor.

Parameters:
dbunderlying OsmDatabase to use.

Definition at line 15 of file ElementCopy.cpp.

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

Definition at line 82 of file ElementCopy.cpp.


Member Function Documentation

void osmdb::ElementCopy::end_copy ( )

Definition at line 27 of file ElementCopy.cpp.

void osmdb::ElementCopy::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 67 of file ElementCopy.cpp.

void osmdb::ElementCopy::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 77 of file ElementCopy.cpp.

void osmdb::ElementCopy::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 72 of file ElementCopy.cpp.

void osmdb::ElementCopy::insert_node ( osm::Node const &  nd) [virtual]

Implements osmdb::ElementImporter.

Definition at line 32 of file ElementCopy.cpp.

void osmdb::ElementCopy::insert_relation ( osm::Relation const &  rel) [virtual]

Implements osmdb::ElementImporter.

Definition at line 54 of file ElementCopy.cpp.

void osmdb::ElementCopy::insert_way ( osm::Way const &  w) [virtual]

Implements osmdb::ElementImporter.

Definition at line 41 of file ElementCopy.cpp.

void osmdb::ElementCopy::start_copy ( )

Definition at line 22 of file ElementCopy.cpp.


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