#ifndef GITDIFFLINE_H
#define GITDIFFLINE_H

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

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

#include "../include/diff.h"
#include "../include/oid.h"
#include "../include/types.h"


using namespace node;
using namespace v8;

class GitDiffLine : public ObjectWrap {
  public:

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

        git_diff_line *GetValue();

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

              static NAN_METHOD(Origin);
                    static NAN_METHOD(OldLineno);
                    static NAN_METHOD(NewLineno);
                    static NAN_METHOD(NumLines);
                    static NAN_METHOD(ContentLen);
                    static NAN_METHOD(ContentOffset);
                    static NAN_METHOD(Content);
          
    
        git_diff_line *raw;
    };

#endif
