///
/// HybridTensorFactorySpec.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 `HybridFaceSpec` to properly resolve imports.
namespace margelo::nitro::visioncamerafacedetection { class HybridFaceSpec; }
// Forward declaration of `TensorFaceOptions` to properly resolve imports.
namespace margelo::nitro::visioncamerafacedetection { struct TensorFaceOptions; }

#include <string>
#include <NitroModules/Null.hpp>
#include <memory>
#include "HybridFaceSpec.hpp"
#include <variant>
#include "TensorFaceOptions.hpp"

namespace margelo::nitro::visioncamerafacedetection {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridTensorFactorySpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::string initTensor(const std::string& modelName) = 0;
      virtual std::variant<nitro::NullType, std::shared_ptr<HybridFaceSpec>> detectFromBase64(const TensorFaceOptions& options) = 0;

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

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

} // namespace margelo::nitro::visioncamerafacedetection
