#ifndef GITSTRARRAY_H
#define GITSTRARRAY_H

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

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

#include "../include/strarray.h"


using namespace node;
using namespace v8;

class GitStrarray : public ObjectWrap {
  public:

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

        git_strarray *GetValue();

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

              static NAN_METHOD(Strings);
                    static NAN_METHOD(Count);
          
    
        git_strarray *raw;
    };

#endif
