|
Osmium
0.1
|
#include <object.hpp>


Classes | |
| struct | JavascriptTemplate |
Public Member Functions | |
| osm_object_id_t | id () const |
| Object & | id (osm_object_id_t id) |
| Object & | id (const char *id) |
| osm_version_t | version () const |
| Object & | version (osm_version_t version) |
| Object & | version (const char *version) |
| osm_changeset_id_t | changeset () const |
| Object & | changeset (osm_changeset_id_t changeset) |
| Object & | changeset (const char *changeset) |
| osm_user_id_t | uid () const |
| Object & | uid (osm_user_id_t uid) |
| Object & | uid (const char *uid) |
| time_t | timestamp () const |
| time_t | endtime () const |
| std::string | timestamp_as_string () const |
| std::string | endtime_as_string () const |
| Object & | timestamp (time_t timestamp) |
| Object & | endtime (time_t timestamp) |
| Object & | timestamp (const char *timestamp) |
| const char * | user () const |
| Object & | user (const char *user) |
| bool | visible () const |
| Object & | visible (bool visible) |
| Object & | visible (const char *visible) |
| virtual osm_object_type_t | get_type () const =0 |
| void | set_attribute (const char *attr, const char *value) |
| const TagList & | tags () const |
| TagList & | tags () |
| void | tags (TagList &tags) |
| v8::Persistent< v8::Object > | get_instance () const |
| v8::Handle< v8::Value > | js_id () const |
| v8::Handle< v8::Value > | js_version () const |
| v8::Handle< v8::Value > | js_timestamp_as_string () const |
| v8::Handle< v8::Value > | js_uid () const |
| v8::Handle< v8::Value > | js_user () const |
| v8::Handle< v8::Value > | js_changeset () const |
| v8::Handle< v8::Value > | js_visible () const |
| v8::Handle< v8::Value > | js_tags () const |
Public Attributes | |
| v8::Persistent< v8::Object > | js_object_instance |
Static Public Attributes | |
| static const int | max_characters_username = 255 |
| static const int | max_utf16_length_username = 2 * (max_characters_username + 1) |
| maximum number of UTF-16 units | |
| static const int | max_length_username = 255 * 4 + 1 |
| maximum length of OSM user name (255 UTF-8 characters + null byte) | |
Protected Member Functions | |
| Object () | |
| Object (const Object &o) | |
| virtual | ~Object () |
Private Attributes | |
| osm_object_id_t | m_id |
| object id | |
| osm_version_t | m_version |
| object version | |
| osm_changeset_id_t | m_changeset |
| id of last changeset that changed this object | |
| time_t | m_timestamp |
| when this object changed last | |
| time_t | m_endtime |
| when this object version was replaced by a new one | |
| osm_user_id_t | m_uid |
| user id of user who last changed this object | |
| char | m_user [max_length_username] |
| name of user who last changed this object | |
| bool | m_visible |
| object visible (only when working with history data) | |
| TagList | m_tags |
Parent class for nodes, ways, and relations.
| Osmium::OSM::Object::Object | ( | ) | [inline, protected] |
| Osmium::OSM::Object::Object | ( | const Object & | o | ) | [inline, protected] |
| virtual Osmium::OSM::Object::~Object | ( | ) | [inline, protected, virtual] |
| osm_changeset_id_t Osmium::OSM::Object::changeset | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::changeset | ( | osm_changeset_id_t | changeset | ) | [inline] |
| Object& Osmium::OSM::Object::changeset | ( | const char * | changeset | ) | [inline] |
| time_t Osmium::OSM::Object::endtime | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::endtime | ( | time_t | timestamp | ) | [inline] |
Set the endtime after which this object is no longer valid. (This is only used when working with history data.)
| timestamp | Time in seconds since epoch. |
| std::string Osmium::OSM::Object::endtime_as_string | ( | ) | const [inline] |
Get the timestamp until which this object is valid.
| v8::Persistent<v8::Object> Osmium::OSM::Object::get_instance | ( | ) | const [inline] |
| virtual osm_object_type_t Osmium::OSM::Object::get_type | ( | ) | const [pure virtual] |
Implemented in Osmium::OSM::AreaFromRelation, Osmium::OSM::AreaFromWay, Osmium::OSM::Way, Osmium::OSM::Node, and Osmium::OSM::Relation.
| osm_object_id_t Osmium::OSM::Object::id | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::id | ( | osm_object_id_t | id | ) | [inline] |
| Object& Osmium::OSM::Object::id | ( | const char * | id | ) | [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_changeset | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_id | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_tags | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_timestamp_as_string | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_uid | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_user | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_version | ( | ) | const [inline] |
| v8::Handle<v8::Value> Osmium::OSM::Object::js_visible | ( | ) | const [inline] |
| void Osmium::OSM::Object::set_attribute | ( | const char * | attr, |
| const char * | value | ||
| ) | [inline] |
Set named attribute.
| attr | Name of the attribute (must be one of "id", "version", "changeset", "timestamp", "uid", "user", "visible") |
| value | Value of the attribute |
| const TagList& Osmium::OSM::Object::tags | ( | ) | const [inline] |
| TagList& Osmium::OSM::Object::tags | ( | ) | [inline] |
| void Osmium::OSM::Object::tags | ( | TagList & | tags | ) | [inline] |
| time_t Osmium::OSM::Object::timestamp | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::timestamp | ( | time_t | timestamp | ) | [inline] |
Set the timestamp when this object last changed.
| timestamp | Time in seconds since epoch. |
| Object& Osmium::OSM::Object::timestamp | ( | const char * | timestamp | ) | [inline] |
Set the timestamp when this object last changed.
| timestamp | Timestamp in the format "yyyy-mm-ddThh:mm:ssZ". |
| std::invalid_argument | Thrown when the given string can't be parsed as a timestamp. The object timestamp will remain unchanged in this case. |
| std::string Osmium::OSM::Object::timestamp_as_string | ( | ) | const [inline] |
Get the timestamp when this object last changed.
| osm_user_id_t Osmium::OSM::Object::uid | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::uid | ( | osm_user_id_t | uid | ) | [inline] |
| Object& Osmium::OSM::Object::uid | ( | const char * | uid | ) | [inline] |
| const char* Osmium::OSM::Object::user | ( | ) | const [inline] |
Get the name of the user who last changed this object.
| Object& Osmium::OSM::Object::user | ( | const char * | user | ) | [inline] |
Set the name of the user who last changed this object.
| std::length_error | Thrown when the username contains more than max_characters_username (255 UTF-8 characters). When the exception is thrown the username is set to "". |
| osm_version_t Osmium::OSM::Object::version | ( | ) | const [inline] |
| Object& Osmium::OSM::Object::version | ( | osm_version_t | version | ) | [inline] |
| Object& Osmium::OSM::Object::version | ( | const char * | version | ) | [inline] |
| bool Osmium::OSM::Object::visible | ( | ) | const [inline] |
Get the visible flag of this object. (This is only used in OSM files with history.)
| Object& Osmium::OSM::Object::visible | ( | bool | visible | ) | [inline] |
Set the visible flag of this object. (This is only used in OSM files with history.)
| Object& Osmium::OSM::Object::visible | ( | const char * | visible | ) | [inline] |
Set the visible flag of this object. (This is only used in OSM files with history.)
| v8::Persistent<v8::Object> Osmium::OSM::Object::js_object_instance |
id of last changeset that changed this object
time_t Osmium::OSM::Object::m_endtime [private] |
when this object version was replaced by a new one
osm_object_id_t Osmium::OSM::Object::m_id [private] |
object id
TagList Osmium::OSM::Object::m_tags [private] |
time_t Osmium::OSM::Object::m_timestamp [private] |
when this object changed last
osm_user_id_t Osmium::OSM::Object::m_uid [private] |
user id of user who last changed this object
char Osmium::OSM::Object::m_user[max_length_username] [private] |
name of user who last changed this object
osm_version_t Osmium::OSM::Object::m_version [private] |
object version
bool Osmium::OSM::Object::m_visible [private] |
object visible (only when working with history data)
const int Osmium::OSM::Object::max_characters_username = 255 [static] |
const int Osmium::OSM::Object::max_length_username = 255 * 4 + 1 [static] |
maximum length of OSM user name (255 UTF-8 characters + null byte)
const int Osmium::OSM::Object::max_utf16_length_username = 2 * (max_characters_username + 1) [static] |
maximum number of UTF-16 units
1.7.6.1