///
/// HybridTfliteModuleSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `HybridTfliteModelSpec` to properly resolve imports.
namespace margelo::nitro::tflite { class HybridTfliteModelSpec; }
// Forward declaration of `TensorflowModelDelegate` to properly resolve imports.
namespace margelo::nitro::tflite { enum class TensorflowModelDelegate; }

#include <memory>
#include "HybridTfliteModelSpec.hpp"
#include <NitroModules/ArrayBuffer.hpp>
#include "TensorflowModelDelegate.hpp"
#include <vector>

namespace margelo::nitro::tflite {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `TfliteModule`
   * Inherit this class to create instances of `HybridTfliteModuleSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridTfliteModule: public HybridTfliteModuleSpec {
   * public:
   *   HybridTfliteModule(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridTfliteModuleSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridTfliteModuleSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridTfliteModuleSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<HybridTfliteModelSpec> createModel(const std::shared_ptr<ArrayBuffer>& modelData, const std::vector<TensorflowModelDelegate>& delegates) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "TfliteModule";
  };

} // namespace margelo::nitro::tflite
