forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 1
/
output-null.hpp
41 lines (30 loc) · 1.36 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
/* 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(const middle_query_t* mid_, const options_t &options);
output_null_t(const output_null_t& other);
virtual ~output_null_t();
virtual std::shared_ptr<output_t> clone(const middle_query_t* cloned_middle) const;
int start();
void stop();
void commit();
void cleanup(void);
void enqueue_ways(pending_queue_t &job_queue, osmid_t id, size_t output_id, size_t& added);
int pending_way(osmid_t id, int exists);
void enqueue_relations(pending_queue_t &job_queue, osmid_t id, size_t output_id, size_t& added);
int pending_relation(osmid_t id, int exists);
int node_add(osmid_t id, double lat, double lon, const taglist_t &tags);
int way_add(osmid_t id, const idlist_t &nodes, const taglist_t &tags);
int relation_add(osmid_t id, const memberlist_t &members, const taglist_t &tags);
int node_modify(osmid_t id, double lat, double lon, const taglist_t &tags);
int way_modify(osmid_t id, const idlist_t &nodes, const taglist_t &tags);
int relation_modify(osmid_t id, const memberlist_t &members, const taglist_t &tags);
int node_delete(osmid_t id);
int way_delete(osmid_t id);
int relation_delete(osmid_t id);
};
#endif