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

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

// Forward declaration.
struct git_oid_shorten {
};

using namespace node;
using namespace v8;

class GitOidShorten : public ObjectWrap {
public:

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

  git_oid_shorten *GetValue();
  git_oid_shorten **GetRefValue();

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

private:
  GitOidShorten(git_oid_shorten *raw, bool selfFreeing);
  ~GitOidShorten();

  static NAN_METHOD(JSNewFunction);

  git_oid_shorten *raw;
};

#endif
