mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-08-16 16:03:23 +00:00
42 lines
1.4 KiB
C++
42 lines
1.4 KiB
C++
/* 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
|