///
/// HybridFrameConverterSpec.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 `HybridImageSpec` to properly resolve imports.
namespace margelo::nitro::image { class HybridImageSpec; }
// Forward declaration of `HybridFrameSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridFrameSpec; }
// Forward declaration of `HybridDepthSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridDepthSpec; }

#include <memory>
#include <NitroImage/HybridImageSpec.hpp>
#include "HybridFrameSpec.hpp"
#include <NitroModules/Promise.hpp>
#include "HybridDepthSpec.hpp"

namespace margelo::nitro::camera {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridFrameConverterSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<margelo::nitro::image::HybridImageSpec> convertFrameToImage(const std::shared_ptr<HybridFrameSpec>& frame) = 0;
      virtual std::shared_ptr<Promise<std::shared_ptr<margelo::nitro::image::HybridImageSpec>>> convertFrameToImageAsync(const std::shared_ptr<HybridFrameSpec>& frame) = 0;
      virtual std::shared_ptr<margelo::nitro::image::HybridImageSpec> convertDepthToImage(const std::shared_ptr<HybridDepthSpec>& depth) = 0;
      virtual std::shared_ptr<Promise<std::shared_ptr<margelo::nitro::image::HybridImageSpec>>> convertDepthToImageAsync(const std::shared_ptr<HybridDepthSpec>& depth) = 0;

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

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

} // namespace margelo::nitro::camera
