Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (23 sloc) 717 Bytes
#ifndef __NODE_MAPNIK_FEATURESET_H__
#define __NODE_MAPNIK_FEATURESET_H__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wshadow"
#include <nan.h>
#pragma GCC diagnostic pop
#include <mapnik/featureset.hpp>
#include <memory>
typedef mapnik::featureset_ptr fs_ptr;
class Featureset: public Nan::ObjectWrap {
public:
static Nan::Persistent<v8::FunctionTemplate> constructor;
static void Initialize(v8::Local<v8::Object> target);
static NAN_METHOD(New);
static v8::Local<v8::Value> NewInstance(mapnik::featureset_ptr fs_ptr);
static NAN_METHOD(next);
Featureset();
private:
~Featureset();
fs_ptr this_;
};
#endif