#include <osm_object_builder.hpp>
|
| RelationMemberListBuilder (osmium::memory::Buffer &buffer, Builder *parent=nullptr) |
|
| ~RelationMemberListBuilder () |
|
void | add_member (osmium::item_type type, object_id_type ref, const char *role, const size_t role_length, const osmium::OSMObject *full_member=nullptr) |
|
void | add_member (osmium::item_type type, object_id_type ref, const char *role, const osmium::OSMObject *full_member=nullptr) |
|
void | add_member (osmium::item_type type, object_id_type ref, const std::string &role, const osmium::OSMObject *full_member=nullptr) |
|
| ObjectBuilder (osmium::memory::Buffer &buffer, Builder *parent=nullptr) |
|
RelationMemberList & | object () noexcept |
|
void | add_user (const char *user, const string_size_type length) |
|
void | add_user (const char *user) |
|
void | add_user (const std::string &user) |
|
void | add_padding (bool self=false) |
|
void | add_size (uint32_t size) |
|
uint32_t | size () const noexcept |
|
void | add_item (const osmium::memory::Item *item) |
|
template<class T > |
T * | reserve_space_for () |
|
osmium::memory::item_size_type | append (const char *data, const osmium::memory::item_size_type length) |
|
osmium::memory::item_size_type | append (const char *str) |
|
osmium::memory::item_size_type | append_zero () |
|
osmium::memory::Buffer & | buffer () noexcept |
| Return the buffer this builder is using. More...
|
|
osmium::builder::RelationMemberListBuilder::~RelationMemberListBuilder |
( |
| ) |
|
|
inline |
Add a member to the relation.
- Parameters
-
type | The type (node, way, or relation). |
ref | The ID of the member. |
role | The role of the member. |
role_length | Length of the role (without \0 termination). |
full_member | Optional pointer to the member object. If it is available a copy will be added to the relation. |
- Exceptions
-
Add a member to the relation.
- Parameters
-
type | The type (node, way, or relation). |
ref | The ID of the member. |
role | The role of the member (\0 terminated string). |
full_member | Optional pointer to the member object. If it is available a copy will be added to the relation. |
- Exceptions
-
Add a member to the relation.
- Parameters
-
type | The type (node, way, or relation). |
ref | The ID of the member. |
role | The role of the member. |
full_member | Optional pointer to the member object. If it is available a copy will be added to the relation. |
- Exceptions
-
void osmium::builder::RelationMemberListBuilder::add_role |
( |
osmium::RelationMember & |
member, |
|
|
const char * |
role, |
|
|
const size_t |
length |
|
) |
| |
|
inlineprivate |
Add role to buffer.
- Parameters
-
member | Relation member object where the length of the role will be set. |
role | The role. |
length | Length of role (without \0 termination). |
- Exceptions
-
The documentation for this class was generated from the following file: