// This is a generated file, modify: generate/templates/templates/class_header.h #ifndef GITSTRARRAY_H #define GITSTRARRAY_H #include #include #include #include #include #include #include "async_baton.h" #include "nodegit_wrapper.h" #include "promise_completion.h" #include "reference_counter.h" extern "C" { #include } #include "../include/typedefs.h" #include "../include/str_array_converter.h" using namespace node; using namespace v8; class GitStrarray; struct GitStrarrayTraits { typedef GitStrarray cppClass; typedef git_strarray cType; static const bool isDuplicable = false; static void duplicate(git_strarray **dest, git_strarray *src) { Nan::ThrowError("duplicate called on GitStrarray which cannot be duplicated"); } static const bool isSingleton = false; static const bool isFreeable = true; static void free(git_strarray *raw) { unsigned long referenceCount = 0; if (referenceCount == 0) { ::git_strarray_free(raw); // :: to avoid calling this free recursively } } }; class GitStrarray : public NodeGitWrapper { // grant full access to base class friend class NodeGitWrapper; public: static void InitializeComponent (v8::Local target); private: GitStrarray() : NodeGitWrapper( "A new GitStrarray cannot be instantiated." ) {} GitStrarray(git_strarray *raw, bool selfFreeing, v8::Local owner = v8::Local()) : NodeGitWrapper(raw, selfFreeing, owner) {} ~GitStrarray(); static NAN_METHOD(Strings); static NAN_METHOD(Count); static NAN_METHOD(Copy); }; #endif