#ifndef GITREFSPEC_H
#define GITREFSPEC_H
// generated from class_header.h
#include <nan.h>
#include <string>

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

#include "../include/refspec.h"

using namespace node;
using namespace v8;

class GitRefspec : public ObjectWrap {
public:

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

  git_refspec *GetValue();
  git_refspec **GetRefValue();

  static Handle<Value> New(void *raw, bool selfFreeing);
  bool selfFreeing;

private:
  GitRefspec(git_refspec *raw, bool selfFreeing);
  ~GitRefspec();

  static NAN_METHOD(JSNewFunction);


  static NAN_METHOD(Direction);

  static NAN_METHOD(Dst);

  static NAN_METHOD(DstMatches);

  static NAN_METHOD(Force);

  static NAN_METHOD(Src);

  static NAN_METHOD(SrcMatches);
  git_refspec *raw;
};

#endif
