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

import NitroModules

/**
 * Represents an instance of `ObjectOutputOptions`, backed by a C++ struct.
 */
public typealias ObjectOutputOptions = margelo.nitro.camera.ObjectOutputOptions

public extension ObjectOutputOptions {
  private typealias bridge = margelo.nitro.camera.bridge.swift

  /**
   * Create a new instance of `ObjectOutputOptions`.
   */
  init(enabledObjectTypes: [ScannedObjectType]) {
    self.init({ () -> bridge.std__vector_ScannedObjectType_ in
      var __vector = bridge.create_std__vector_ScannedObjectType_(enabledObjectTypes.count)
      for __item in enabledObjectTypes {
        __vector.push_back(__item)
      }
      return __vector
    }())
  }

  @inline(__always)
  var enabledObjectTypes: [ScannedObjectType] {
    return self.__enabledObjectTypes.map({ __item in __item })
  }
}
