Public Member Functions
osm::Element Class Reference

Represents an element in OpenStreetMap data. More...

#include <Element.h>

Inheritance diagram for osm::Element:
osm::Node osm::Relation osm::Way

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

Detailed Description

Represents an element in OpenStreetMap data.

Definition at line 34 of file Element.h.


Constructor & Destructor Documentation

osm::Element::~Element ( ) [virtual]

Definition at line 13 of file Element.cpp.


Member Function Documentation

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.

Parameters:
dbto use when inserting
parentidrelation id
rolerole 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.

Parameters:
db

Implemented in osm::Relation, osm::Way, and osm::Node.

virtual boost::property_tree::ptree osm::Element::get_description ( ) [pure virtual]
Returns:
a description of this element (used for displaying)

Implemented in osm::Relation, osm::Node, and osm::Way.

virtual int64_t osm::Element::get_id ( ) const [pure virtual]
Returns:
id of this element

Implemented in osm::Relation, osm::Node, and osm::Way.

virtual osm::ObjectType osm::Element::get_type ( ) const [pure virtual]
Returns:
the type of this element

Implemented in osm::Relation, osm::Node, and osm::Way.


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