//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================

#include "smtk/common/CompilerInformation.h"

SMTK_THIRDPARTY_PRE_INCLUDE
#include <pybind11/pybind11.h>
SMTK_THIRDPARTY_POST_INCLUDE

#include <utility>

namespace py = pybind11;

template <typename T, typename... Args>
using PySharedPtrClass = py::class_<T, std::shared_ptr<T>, Args...>;

#include "PybindExportSpec.h"
#include "PybindUserData.h"

PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>);

PYBIND11_MODULE(_smtkPybindSimulation, simulation)
{
  simulation.doc() = "<description>";

  // The order of these function calls is important! It was determined by
  // comparing the dependencies of each of the wrapped objects.
  py::class_< smtk::simulation::ExportSpec > smtk_simulation_ExportSpec = pybind11_init_smtk_simulation_ExportSpec(simulation);
  PySharedPtrClass< smtk::simulation::UserData > smtk_simulation_UserData = pybind11_init_smtk_simulation_UserData(simulation);
  PySharedPtrClass< smtk::simulation::UserDataInt > smtk_simulation_UserDataInt = pybind11_init_smtk_simulation_UserDataInt(simulation);
  PySharedPtrClass< smtk::simulation::UserDataDouble > smtk_simulation_UserDataDouble = pybind11_init_smtk_simulation_UserDataDouble(simulation);
  PySharedPtrClass< smtk::simulation::UserDataString > smtk_simulation_UserDataString = pybind11_init_smtk_simulation_UserDataString(simulation);
}
