Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (22 sloc) 0.671 kb
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
#ifndef __NODE_MAPNIK_FEATURESET_H__
#define __NODE_MAPNIK_FEATURESET_H__

#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <mapnik/datasource_cache.hpp>

using namespace v8;
using namespace node;

typedef mapnik::featureset_ptr fs_ptr;

class Featureset: public node::ObjectWrap {
  public:
    static Persistent<FunctionTemplate> constructor;
    static void Initialize(Handle<Object> target);
    static Handle<Value> New(const Arguments &args);
    static Handle<Value> New(mapnik::featureset_ptr fs_ptr);
    static Handle<Value> next(const Arguments &args);
    
    Featureset();

  private:
    ~Featureset();
    fs_ptr this_;
};

#endif
Something went wrong with that request. Please try again.