forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output-null.hpp
43 lines (32 loc) · 1.37 KB
/
output-null.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Implements dummy output-layer processing for testing.
*/
#ifndef OUTPUT_NULL_H
#define OUTPUT_NULL_H
#include "output.hpp"
class output_null_t : public output_t {
public:
output_null_t(std::shared_ptr<middle_query_t> const &mid,
options_t const &options);
virtual ~output_null_t();
std::shared_ptr<output_t>
clone(std::shared_ptr<middle_query_t> const &mid,
std::shared_ptr<db_copy_thread_t> const ©_thread) const override;
int start() override;
void stop(osmium::thread::Pool *pool) override;
void commit() override;
void cleanup(void);
void enqueue_ways(pending_queue_t &job_queue, osmid_t id, size_t output_id, size_t& added) override;
int pending_way(osmid_t id, int exists) override;
void enqueue_relations(pending_queue_t &job_queue, osmid_t id, size_t output_id, size_t& added) override;
int pending_relation(osmid_t id, int exists) override;
int node_add(osmium::Node const &node) override;
int way_add(osmium::Way *way) override;
int relation_add(osmium::Relation const &rel) override;
int node_modify(osmium::Node const &node) override;
int way_modify(osmium::Way *way) override;
int relation_modify(osmium::Relation const &rel) override;
int node_delete(osmid_t id) override;
int way_delete(osmid_t id) override;
int relation_delete(osmid_t id) override;
};
#endif