// This is a generated file, modify: generate/templates/templates/class_header.h

#ifndef GITCOMMITCREATEOPTIONS_H
#define GITCOMMITCREATEOPTIONS_H
#include <nan.h>
#include <string>
#include <utility>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <sstream>

#include "async_baton.h"
#include "async_worker.h"
#include "cleanup_handle.h"
#include "context.h"
#include "lock_master.h"
#include "nodegit_wrapper.h"
#include "promise_completion.h"
#include "reference_counter.h"
#include "worker_pool.h"

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

#include "../include/typedefs.h"

#include "../include/signature.h"

using namespace node;
using namespace v8;

class GitCommitCreateOptions;
 
struct GitCommitCreateOptionsTraits {
  typedef GitCommitCreateOptions cppClass;
  typedef git_commit_create_options cType;
 
  static const bool isDuplicable = false;
  static void duplicate(git_commit_create_options **dest, git_commit_create_options *src) {
     Nan::ThrowError("duplicate called on GitCommitCreateOptions which cannot be duplicated");
   }

  static std::string className() { return "GitCommitCreateOptions"; };
  static const bool isSingleton = false;
  static const bool isFreeable = false;
  static void free(git_commit_create_options *raw) {
     Nan::ThrowError("free called on GitCommitCreateOptions which cannot be freed");
   }
};

class GitCommitCreateOptions : public
  NodeGitWrapper<GitCommitCreateOptionsTraits>
{
    // grant full access to base class
    friend class NodeGitWrapper<GitCommitCreateOptionsTraits>;
   public:
    GitCommitCreateOptions(const GitCommitCreateOptions &) = delete;
    GitCommitCreateOptions(GitCommitCreateOptions &&) = delete;
    GitCommitCreateOptions &operator=(const GitCommitCreateOptions &) = delete;
    GitCommitCreateOptions &operator=(GitCommitCreateOptions &&) = delete;

    static void InitializeComponent (v8::Local<v8::Object> target, nodegit::Context *nodegitContext);

 

  private:
    GitCommitCreateOptions()
      : NodeGitWrapper<GitCommitCreateOptionsTraits>(
           "A new GitCommitCreateOptions cannot be instantiated."
       )
    {}
    GitCommitCreateOptions(git_commit_create_options *raw, bool selfFreeing, v8::Local<v8::Object> owner = v8::Local<v8::Object>())
      : NodeGitWrapper<GitCommitCreateOptionsTraits>(raw, selfFreeing, owner)
    {}
    ~GitCommitCreateOptions();
    static NAN_METHOD(Version);
    static NAN_METHOD(AllowEmptyCommit);
    static NAN_METHOD(Author);
    static NAN_METHOD(Committer);
    static NAN_METHOD(MessageEncoding);
};

#endif
