#ifndef GITINDEXER_H
#define GITINDEXER_H

#include <nan.h>
#include <string>

extern "C" {
#include <git2.h>
}

#include "../include/indexer.h"
#include "../include/odb.h"


using namespace node;
using namespace v8;

class GitIndexer : public ObjectWrap {
  public:

    static Persistent<Function> constructor_template;
    static void Initialize (Handle<v8::Object> target);

        git_indexer *GetValue();

    static Handle<Value> New(void *raw);
    
  private:
        GitIndexer(git_indexer *raw);
    ~GitIndexer();
    
    static NAN_METHOD(New);

    
    
        git_indexer *raw;
    };

#endif
