ImportEventContext.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <SceneAPI/SceneCore/Events/ImportEventContext.h>
  9. namespace AZ
  10. {
  11. namespace SceneAPI
  12. {
  13. namespace Events
  14. {
  15. /////////////
  16. // PreImportEventContext
  17. /////////////
  18. PreImportEventContext::PreImportEventContext(const char* inputDirectory)
  19. : m_inputDirectory(inputDirectory)
  20. {
  21. }
  22. PreImportEventContext::PreImportEventContext(const AZStd::string& inputDirectory)
  23. : m_inputDirectory(inputDirectory)
  24. {
  25. }
  26. PreImportEventContext::PreImportEventContext(AZStd::string&& inputDirectory)
  27. : m_inputDirectory(AZStd::move(inputDirectory))
  28. {
  29. }
  30. const AZStd::string& PreImportEventContext::GetInputDirectory() const
  31. {
  32. return m_inputDirectory;
  33. }
  34. /////////////
  35. // ImportEventContext
  36. /////////////
  37. ImportEventContext::ImportEventContext(const char* inputDirectory, Containers::Scene& scene)
  38. : m_inputDirectory(inputDirectory)
  39. , m_scene(scene)
  40. {
  41. }
  42. ImportEventContext::ImportEventContext(const AZStd::string& inputDirectory, Containers::Scene& scene)
  43. : m_inputDirectory(inputDirectory)
  44. , m_scene(scene)
  45. {
  46. }
  47. ImportEventContext::ImportEventContext(AZStd::string&& inputDirectory, Containers::Scene& scene)
  48. : m_inputDirectory(AZStd::move(inputDirectory))
  49. , m_scene(scene)
  50. {
  51. }
  52. const AZStd::string& ImportEventContext::GetInputDirectory() const
  53. {
  54. return m_inputDirectory;
  55. }
  56. Containers::Scene& ImportEventContext::GetScene()
  57. {
  58. return m_scene;
  59. }
  60. /////////////
  61. // PostImportEventContext
  62. /////////////
  63. PostImportEventContext::PostImportEventContext(const Containers::Scene& scene)
  64. : m_scene(scene)
  65. {
  66. }
  67. const Containers::Scene& PostImportEventContext::GetScene() const
  68. {
  69. return m_scene;
  70. }
  71. } // Events
  72. } // SceneAPI
  73. } // AZ