-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathchained_datasource.hpp
More file actions
39 lines (32 loc) · 856 Bytes
/
chained_datasource.hpp
File metadata and controls
39 lines (32 loc) · 856 Bytes
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
/*
* chained_datasource.hpp
*
* Created on: Aug 8, 2011
* Author: stella
*/
#ifndef CHAINED_DATASOURCE_HPP
#define CHAINED_DATASOURCE_HPP
// mapnik
#include <mapnik/feature.hpp>
#include <mapnik/datasource.hpp>
/**
* chained_datasource
* Base class for constructing datasources that depend on other
* datasources. The source datasource is constructed using
* parameters prefixed with "src_".
*/
class chained_datasource: public mapnik::datasource {
private:
mapnik::parameters source_params_;
mutable mapnik::datasource_ptr source_;
public:
chained_datasource(const mapnik::parameters& params, bool bind=true);
virtual ~chained_datasource();
mapnik::box2d<double> envelope() const;
void bind() const;
protected:
mapnik::datasource_ptr source() const {
return source_;
}
};
#endif /* CHAINED_DATASOURCE_HPP_ */