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

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>
#import "AudioAnalyzer-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "Processor.hpp"
#include "HybridFileSystemSpecSwift.hpp"

@interface AudioAnalyzerAutolinking : NSObject
@end

@implementation AudioAnalyzerAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::audioanalyzer;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "Processor",
    []() -> std::shared_ptr<HybridObject> {
      static_assert(std::is_default_constructible_v<Processor>,
                    "The HybridObject \"Processor\" is not default-constructible! "
                    "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
      return std::make_shared<Processor>();
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "FileSystem",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<margelo::nitro::audioanalyzer::HybridFileSystemSpec> hybridObject = AudioAnalyzer::AudioAnalyzerAutolinking::createFileSystem();
      return hybridObject;
    }
  );
}

@end
