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

#pragma once

#include "HybridLocationSpec.hpp"

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





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

namespace margelo::nitro::camera {

  /**
   * The C++ part of HybridLocationSpec_cxx.swift.
   *
   * HybridLocationSpecSwift (C++) accesses HybridLocationSpec_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, HybridLocationSpec_cxx can directly inherit from the C++ class HybridLocationSpec
   * to simplify the whole structure and memory management.
   */
  class HybridLocationSpecSwift: public virtual HybridLocationSpec {
  public:
    // Constructor from a Swift instance
    explicit HybridLocationSpecSwift(const VisionCamera::HybridLocationSpec_cxx& swiftPart):
      HybridObject(HybridLocationSpec::TAG),
      _swiftPart(swiftPart) { }

  public:
    // Get the Swift part
    inline VisionCamera::HybridLocationSpec_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<HybridLocationSpecSwift>(other)) {
        return _swiftPart.equals(otherCast->_swiftPart);
      }
      return false;
    }
    void dispose() noexcept override {
      _swiftPart.dispose();
    }
    std::string toString() override {
      return _swiftPart.toString();
    }

  public:
    // Properties
    inline double getLatitude() noexcept override {
      return _swiftPart.getLatitude();
    }
    inline double getLongitude() noexcept override {
      return _swiftPart.getLongitude();
    }
    inline double getAltitude() noexcept override {
      return _swiftPart.getAltitude();
    }
    inline double getHorizontalAccuracy() noexcept override {
      return _swiftPart.getHorizontalAccuracy();
    }
    inline double getVerticalAccuracy() noexcept override {
      return _swiftPart.getVerticalAccuracy();
    }
    inline double getTimestamp() noexcept override {
      return _swiftPart.getTimestamp();
    }
    inline bool getIsMock() noexcept override {
      return _swiftPart.isMock();
    }

  public:
    // Methods
    

  private:
    VisionCamera::HybridLocationSpec_cxx _swiftPart;
  };

} // namespace margelo::nitro::camera
