1 #ifndef OSMIUM_HANDLER_DISK_STORE_HPP
2 #define OSMIUM_HANDLER_DISK_STORE_HPP
40 #include <osmium/io/detail/read_write.hpp>
73 m_node_index(node_index),
74 m_way_index(way_index),
75 m_relation_index(relation_index) {
85 m_offset += node.byte_size();
100 osmium::io::detail::reliable_write(m_data_fd, buffer.
data(), buffer.
committed());
111 #endif // OSMIUM_HANDLER_DISK_STORE_HPP
offset_index_type & m_relation_index
Definition: disk_store.hpp:67
size_t m_offset
Definition: disk_store.hpp:62
offset_index_type & m_node_index
Definition: disk_store.hpp:65
void node(const osmium::Node &node)
Definition: disk_store.hpp:83
int m_data_fd
Definition: disk_store.hpp:63
Definition: relation.hpp:165
Definition: handler.hpp:45
void operator()(const osmium::memory::Buffer &buffer)
Definition: disk_store.hpp:99
void apply(TIterator it, TIterator end, THandlers &...handlers)
Definition: visitor.hpp:234
DiskStore(int data_fd, offset_index_type &node_index, offset_index_type &way_index, offset_index_type &relation_index)
Definition: disk_store.hpp:71
t_iterator< T > end()
Definition: buffer.hpp:595
Definition: disk_store.hpp:58
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
t_iterator< T > begin()
Definition: buffer.hpp:539
unsigned char * data() const noexcept
Definition: buffer.hpp:224
~DiskStore() noexcept=default
offset_index_type & m_way_index
Definition: disk_store.hpp:66
item_size_type byte_size() const noexcept
Definition: item.hpp:147
size_t committed() const noexcept
Definition: buffer.hpp:241
Definition: buffer.hpp:97
void way(const osmium::Way &way)
Definition: disk_store.hpp:88
unsigned_object_id_type positive_id() const noexcept
Get absolute value of the ID of this object.
Definition: object.hpp:117
void relation(const osmium::Relation &relation)
Definition: disk_store.hpp:93
DiskStore & operator=(const DiskStore &)=delete
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.