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

// generated from struct_header.h
#ifndef GITMERGEFILERESULT_H
#define GITMERGEFILERESULT_H
#include <nan.h>
#include <string>
#include <utility>

#include "async_baton.h"
#include "async_worker.h"
#include "callback_wrapper.h"
#include "context.h"
#include "reference_counter.h"
#include "nodegit_wrapper.h"
#include "configurable_class_wrapper.h"
#include "v8_helpers.h"

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

 
using namespace node;
using namespace v8;

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

  static std::string className() { return "GitMergeFileResult"; };
  static const bool isSingleton = false;
  static const bool isFreeable = true;
  static void free(git_merge_file_result *raw) {
    unsigned long referenceCount = 0;
     if (referenceCount == 0) {
      ::git_merge_file_result_free(raw); // :: to avoid calling this free recursively
    }
   }
};
   class GitMergeFileResult : public NodeGitWrapper<GitMergeFileResultTraits> {
      // grant full access to base class
      friend class NodeGitWrapper<GitMergeFileResultTraits>;

    public:
      GitMergeFileResult(git_merge_file_result* raw, bool selfFreeing, v8::Local<v8::Object> owner = v8::Local<v8::Object>());
      GitMergeFileResult(const GitMergeFileResult &) = delete;
      GitMergeFileResult(GitMergeFileResult &&) = delete;
      GitMergeFileResult &operator=(const GitMergeFileResult &) = delete;
      GitMergeFileResult &operator=(GitMergeFileResult &&) = delete;
      static void InitializeComponent (v8::Local<v8::Object> target, nodegit::Context *nodegitContext);

    private:
      GitMergeFileResult();
      ~GitMergeFileResult();

      void ConstructFields();

  
          static NAN_GETTER(GetAutomergeable);
          static NAN_SETTER(SetAutomergeable);

   
          static NAN_GETTER(GetPath);
          static NAN_SETTER(SetPath);

   
          static NAN_GETTER(GetMode);
          static NAN_SETTER(SetMode);

   
          static NAN_GETTER(GetPtr);
          static NAN_SETTER(SetPtr);

   
          static NAN_GETTER(GetLen);
          static NAN_SETTER(SetLen);

    };
 
class ConfigurableGitMergeFileResult : public nodegit::ConfigurableClassWrapper<GitMergeFileResultTraits> {
  friend class nodegit::ConfigurableClassWrapper<GitMergeFileResultTraits>;

public:
  static v8ConversionResult fromJavascript(nodegit::Context *nodegitContext, v8::Local<v8::Value> input);
  ~ConfigurableGitMergeFileResult();

  ConfigurableGitMergeFileResult(const ConfigurableGitMergeFileResult &) = delete;
  ConfigurableGitMergeFileResult(ConfigurableGitMergeFileResult &&) = delete;
  ConfigurableGitMergeFileResult &operator=(const ConfigurableGitMergeFileResult &) = delete;
  ConfigurableGitMergeFileResult &operator=(ConfigurableGitMergeFileResult &&) = delete;

           
private:
  ConfigurableGitMergeFileResult(nodegit::Context *nodegitContext);
  ConfigurableGitMergeFileResult() = delete;
  Nan::Global<Value> promiseError;

                
};

#endif
