Represents an element in OpenStreetMap data. More...
#include <Element.h>
Public Member Functions | |
virtual | ~Element () |
virtual boost::property_tree::ptree | get_description ()=0 |
virtual osm::ObjectType | get_type () const =0 |
virtual void | fill (osmdb::PropertiesSelection &db)=0 |
Fill attributes and possibly other information from db. | |
virtual void | add_to_relation (osmdb::ElementImporter &db, int64_t parentid, std::string const &role)=0 |
Execute the needed method of db to insert this element as member into relation. | |
virtual int64_t | get_id () const =0 |
osm::Element::~Element | ( | ) | [virtual] |
Definition at line 13 of file Element.cpp.
virtual void osm::Element::add_to_relation | ( | osmdb::ElementImporter & | db, |
int64_t | parentid, | ||
std::string const & | role | ||
) | [pure virtual] |
Execute the needed method of db to insert this element as member into relation.
db | to use when inserting |
parentid | relation id |
role | role to use when inserting |
Implemented in osm::Relation, osm::Way, and osm::Node.
virtual void osm::Element::fill | ( | osmdb::PropertiesSelection & | db | ) | [pure virtual] |
Fill attributes and possibly other information from db.
db |
Implemented in osm::Relation, osm::Way, and osm::Node.
virtual boost::property_tree::ptree osm::Element::get_description | ( | ) | [pure virtual] |
Implemented in osm::Relation, osm::Node, and osm::Way.
virtual int64_t osm::Element::get_id | ( | ) | const [pure virtual] |
Implemented in osm::Relation, osm::Node, and osm::Way.
virtual osm::ObjectType osm::Element::get_type | ( | ) | const [pure virtual] |
Implemented in osm::Relation, osm::Node, and osm::Way.