Libosmium
2.6.0
Fast and flexible C++ library for working with OpenStreetMap data
|
An OSM Changeset, a group of changes made by a single user over a short period of time. More...
#include <changeset.hpp>
Public Types | |
typedef osmium::memory::CollectionIterator < Item > | iterator |
typedef osmium::memory::CollectionIterator < const Item > | const_iterator |
Public Member Functions | |
changeset_id_type | id () const noexcept |
Get ID of this changeset. More... | |
Changeset & | set_id (changeset_id_type id) noexcept |
Changeset & | set_id (const char *id) |
user_id_type | uid () const noexcept |
Get user id. More... | |
Changeset & | set_uid (user_id_type uid) noexcept |
Changeset & | set_uid_from_signed (signed_user_id_type uid) noexcept |
Changeset & | set_uid (const char *uid) |
bool | user_is_anonymous () const noexcept |
Is this user anonymous? More... | |
osmium::Timestamp | created_at () const noexcept |
Get timestamp when this changeset was created. More... | |
osmium::Timestamp | closed_at () const noexcept |
bool | open () const noexcept |
Is this changeset open? More... | |
bool | closed () const noexcept |
Is this changeset closed? More... | |
Changeset & | set_created_at (const osmium::Timestamp ×tamp) |
Changeset & | set_closed_at (const osmium::Timestamp ×tamp) |
num_changes_type | num_changes () const noexcept |
Get the number of changes in this changeset. More... | |
Changeset & | set_num_changes (num_changes_type num_changes) noexcept |
Set the number of changes in this changeset. More... | |
Changeset & | set_num_changes (const char *num_changes) |
Set the number of changes in this changeset. More... | |
num_comments_type | num_comments () const noexcept |
Get the number of comments in this changeset. More... | |
Changeset & | set_num_comments (num_comments_type num_comments) noexcept |
Set the number of comments in this changeset. More... | |
Changeset & | set_num_comments (const char *num_comments) |
Set the number of comments in this changeset. More... | |
osmium::Box & | bounds () noexcept |
const osmium::Box & | bounds () const noexcept |
const char * | user () const |
Get user name. More... | |
const TagList & | tags () const |
Get the list of tags. More... | |
void | set_attribute (const char *attr, const char *value) |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_iterator | begin () const |
const_iterator | end () const |
ChangesetDiscussion & | discussion () |
const ChangesetDiscussion & | discussion () const |
![]() | |
OSMEntity (osmium::memory::item_size_type size, osmium::item_type type) | |
bool | type_is_in (osmium::osm_entity_bits::type entity_bits) const |
![]() | |
unsigned char * | next () noexcept |
const unsigned char * | next () const noexcept |
item_size_type | byte_size () const noexcept |
item_size_type | padded_size () const |
item_type | type () const noexcept |
bool | removed () const noexcept |
void | set_removed (bool removed) noexcept |
Private Member Functions | |
Changeset () | |
void | set_user_size (string_size_type size) |
unsigned char * | subitems_position () |
const unsigned char * | subitems_position () const |
Private Attributes | |
osmium::Box | m_bounds |
osmium::Timestamp | m_created_at |
osmium::Timestamp | m_closed_at |
changeset_id_type | m_id {0} |
num_changes_type | m_num_changes {0} |
num_comments_type | m_num_comments {0} |
user_id_type | m_uid {0} |
string_size_type | m_user_size |
int16_t | m_padding1 {0} |
int32_t | m_padding2 {0} |
Friends | |
class | osmium::builder::ObjectBuilder< osmium::Changeset > |
Additional Inherited Members | |
![]() | |
Item (item_size_type size=0, item_type type=item_type()) noexcept | |
Item (const Item &)=delete | |
Item (Item &&)=delete | |
Item & | operator= (const Item &)=delete |
Item & | operator= (Item &&)=delete |
Item & | set_type (const item_type item_type) noexcept |
An OSM Changeset, a group of changes made by a single user over a short period of time.
You can not create Changeset objects directly. Use the ChangesetBuilder class to create Changesets in a Buffer.
|
inlineprivate |
|
inline |
|
inline |
|
inlinenoexcept |
Get the bounding box of this changeset.
|
inlinenoexcept |
Get the bounding box of this changeset.
|
inline |
|
inline |
|
inlinenoexcept |
Is this changeset closed?
|
inlinenoexcept |
|
inlinenoexcept |
Get timestamp when this changeset was created.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Get ID of this changeset.
|
inlinenoexcept |
Get the number of changes in this changeset.
|
inlinenoexcept |
Get the number of comments in this changeset.
|
inlinenoexcept |
Is this changeset open?
|
inline |
Set named attribute.
attr | Name of the attribute (must be one of "id", "version", "changeset", "timestamp", "uid", "visible") |
value | Value of the attribute |
|
inline |
Set the timestamp when this changeset was closed.
timestamp | Timestamp |
|
inline |
Set the timestamp when this changeset was created.
timestamp | Timestamp |
|
inlinenoexcept |
Set ID of this changeset
id | The id. |
|
inline |
Set ID of this changeset.
id | The id. |
|
inlinenoexcept |
Set the number of changes in this changeset.
|
inline |
Set the number of changes in this changeset.
|
inlinenoexcept |
Set the number of comments in this changeset.
|
inline |
Set the number of comments in this changeset.
|
inlinenoexcept |
Set user id.
uid | The user id. |
|
inline |
Set user id to given uid or to 0 (anonymous user) if the given uid is smaller than 0.
|
inlinenoexcept |
Set user id to given uid or to 0 (anonymous user) if the given uid is smaller than 0.
uid | The user id. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Get the list of tags.
|
inlinenoexcept |
Get user id.
|
inline |
Get user name.
|
inlinenoexcept |
Is this user anonymous?
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |