///
/// HybridImageFaceDetectorFactorySpec.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 `HybridImageFaceDetectorSpec` to properly resolve imports.
namespace margelo::nitro::camera::facedetector { class HybridImageFaceDetectorSpec; }
// Forward declaration of `ImageFaceDetectorOptions` to properly resolve imports.
namespace margelo::nitro::camera::facedetector { struct ImageFaceDetectorOptions; }

#include <memory>
#include "HybridImageFaceDetectorSpec.hpp"
#include "ImageFaceDetectorOptions.hpp"

namespace margelo::nitro::camera::facedetector {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridImageFaceDetectorFactorySpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<HybridImageFaceDetectorSpec> createImageFaceDetector(const ImageFaceDetectorOptions& options) = 0;

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

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

} // namespace margelo::nitro::camera::facedetector
