IMetadataUpdates.h 824 B

123456789101112131415161718192021222324252627282930
  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. #pragma once
  9. #include <AzCore/RTTI/RTTI.h>
  10. #include <AzCore/IO/Path/Path.h>
  11. namespace AssetProcessor
  12. {
  13. //! Interface for signalling a pending file move/rename is about to occur
  14. struct IMetadataUpdates
  15. {
  16. AZ_RTTI(IMetadataUpdates, "{8CB894B4-DB4B-4385-BEF5-39505DD951AC}");
  17. AZ_DISABLE_COPY_MOVE(IMetadataUpdates);
  18. IMetadataUpdates() = default;
  19. virtual ~IMetadataUpdates() = default;
  20. //! Signal to AP that a file is about to be moved/renamed
  21. virtual void PrepareForFileMove(AZ::IO::PathView oldPath, AZ::IO::PathView newPath) = 0;
  22. };
  23. }