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

#pragma once

#include "HybridCameraSessionConfigSpec.hpp"

// Forward declaration of `HybridCameraSessionConfigSpec_cxx` to properly resolve imports.
namespace VisionCamera { class HybridCameraSessionConfigSpec_cxx; }

// Forward declaration of `TargetStabilizationMode` to properly resolve imports.
namespace margelo::nitro::camera { enum class TargetStabilizationMode; }
// Forward declaration of `TargetDynamicRange` to properly resolve imports.
namespace margelo::nitro::camera { struct TargetDynamicRange; }
// Forward declaration of `TargetDynamicRangeBitDepth` to properly resolve imports.
namespace margelo::nitro::camera { enum class TargetDynamicRangeBitDepth; }
// Forward declaration of `TargetColorSpace` to properly resolve imports.
namespace margelo::nitro::camera { enum class TargetColorSpace; }
// Forward declaration of `TargetColorRange` to properly resolve imports.
namespace margelo::nitro::camera { enum class TargetColorRange; }
// Forward declaration of `PixelFormat` to properly resolve imports.
namespace margelo::nitro::camera { enum class PixelFormat; }
// Forward declaration of `AutoFocusSystem` to properly resolve imports.
namespace margelo::nitro::camera { enum class AutoFocusSystem; }

#include <optional>
#include "TargetStabilizationMode.hpp"
#include "TargetDynamicRange.hpp"
#include "TargetDynamicRangeBitDepth.hpp"
#include "TargetColorSpace.hpp"
#include "TargetColorRange.hpp"
#include "PixelFormat.hpp"
#include "AutoFocusSystem.hpp"

#include "VisionCamera-Swift-Cxx-Umbrella.hpp"

namespace margelo::nitro::camera {

  /**
   * The C++ part of HybridCameraSessionConfigSpec_cxx.swift.
   *
   * HybridCameraSessionConfigSpecSwift (C++) accesses HybridCameraSessionConfigSpec_cxx (Swift), and might
   * contain some additional bridging code for C++ <> Swift interop.
   *
   * Since this obviously introduces an overhead, I hope at some point in
   * the future, HybridCameraSessionConfigSpec_cxx can directly inherit from the C++ class HybridCameraSessionConfigSpec
   * to simplify the whole structure and memory management.
   */
  class HybridCameraSessionConfigSpecSwift: public virtual HybridCameraSessionConfigSpec {
  public:
    // Constructor from a Swift instance
    explicit HybridCameraSessionConfigSpecSwift(const VisionCamera::HybridCameraSessionConfigSpec_cxx& swiftPart):
      HybridObject(HybridCameraSessionConfigSpec::TAG),
      _swiftPart(swiftPart) { }

  public:
    // Get the Swift part
    inline VisionCamera::HybridCameraSessionConfigSpec_cxx& getSwiftPart() noexcept {
      return _swiftPart;
    }

  public:
    inline size_t getExternalMemorySize() noexcept override {
      return _swiftPart.getMemorySize();
    }
    bool equals(const std::shared_ptr<HybridObject>& other) override {
      if (auto otherCast = std::dynamic_pointer_cast<HybridCameraSessionConfigSpecSwift>(other)) {
        return _swiftPart.equals(otherCast->_swiftPart);
      }
      return false;
    }
    void dispose() noexcept override {
      _swiftPart.dispose();
    }
    std::string toString() override {
      return _swiftPart.toString();
    }

  public:
    // Properties
    inline std::optional<double> getSelectedFPS() noexcept override {
      auto __result = _swiftPart.getSelectedFPS();
      return __result;
    }
    inline std::optional<TargetStabilizationMode> getSelectedVideoStabilizationMode() noexcept override {
      auto __result = _swiftPart.getSelectedVideoStabilizationMode();
      return __result;
    }
    inline std::optional<TargetStabilizationMode> getSelectedPreviewStabilizationMode() noexcept override {
      auto __result = _swiftPart.getSelectedPreviewStabilizationMode();
      return __result;
    }
    inline std::optional<TargetDynamicRange> getSelectedVideoDynamicRange() noexcept override {
      auto __result = _swiftPart.getSelectedVideoDynamicRange();
      return __result;
    }
    inline bool getIsPhotoHDREnabled() noexcept override {
      return _swiftPart.isPhotoHDREnabled();
    }
    inline PixelFormat getNativePixelFormat() noexcept override {
      auto __result = _swiftPart.getNativePixelFormat();
      return static_cast<PixelFormat>(__result);
    }
    inline AutoFocusSystem getAutoFocusSystem() noexcept override {
      auto __result = _swiftPart.getAutoFocusSystem();
      return static_cast<AutoFocusSystem>(__result);
    }
    inline bool getIsBinned() noexcept override {
      return _swiftPart.isBinned();
    }

  public:
    // Methods
    

  private:
    VisionCamera::HybridCameraSessionConfigSpec_cxx _swiftPart;
  };

} // namespace margelo::nitro::camera
