Public Member Functions | Data Fields
osm::Way Class Reference

Represents a way in OpenStreetMap (a sequence of Nodes) More...

#include <Way.h>

Inheritance diagram for osm::Way:
osm::Element

Public Member Functions

 Way ()
 Way (int64_t id)
 Constructs a Way with given id.
virtual ~Way ()
boost::property_tree::ptree get_description ()
osm::ObjectType get_type () const
bool operator== (Way const &e) const
bool operator!= (Way const &e) const
void fill (osmdb::PropertiesSelection &db)
 Fill attributes and possibly other information from db.
virtual int64_t get_id () const
void add_to_relation (osmdb::ElementImporter &db, int64_t relation, std::string const &role)
 Execute the needed method of db to insert this element as member into relation.

Data Fields

int64_t id
std::vector< osm::Nodenodes
 Member nodes - from first to last.
std::set< osm::Tagtags
 Way attributes.

Detailed Description

Represents a way in OpenStreetMap (a sequence of Nodes)

Definition at line 24 of file Way.h.


Constructor & Destructor Documentation

osm::Way::Way ( )

Definition at line 14 of file Way.cpp.

osm::Way::Way ( int64_t  id)

Constructs a Way with given id.

Parameters:
id

Definition at line 18 of file Way.cpp.

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

Definition at line 23 of file Way.cpp.


Member Function Documentation

void osm::Way::add_to_relation ( osmdb::ElementImporter db,
int64_t  parentid,
std::string const &  role 
) [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

Implements osm::Element.

Definition at line 72 of file Way.cpp.

void osm::Way::fill ( osmdb::PropertiesSelection db) [virtual]

Fill attributes and possibly other information from db.

Parameters:
db

Implements osm::Element.

Definition at line 53 of file Way.cpp.

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

Implements osm::Element.

Definition at line 32 of file Way.cpp.

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

Implements osm::Element.

Definition at line 67 of file Way.cpp.

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

Implements osm::Element.

Definition at line 77 of file Way.cpp.

bool osm::Way::operator!= ( Way const &  e) const

Definition at line 82 of file Way.cpp.

bool osm::Way::operator== ( Way const &  e) const

Definition at line 27 of file Way.cpp.


Field Documentation

int64_t osm::Way::id

Definition at line 34 of file Way.h.

std::vector<osm::Node> osm::Way::nodes

Member nodes - from first to last.

Definition at line 38 of file Way.h.

Way attributes.

Definition at line 42 of file Way.h.


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