SpecializedDependencyScanner.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/Math/Crc.h>
  10. #include <AzCore/std/smart_ptr/enable_shared_from_this.h>
  11. #include <AzCore/std/smart_ptr/shared_ptr.h>
  12. #include <AzCore/std/string/string.h>
  13. namespace AZ
  14. {
  15. namespace IO
  16. {
  17. class GenericStream;
  18. }
  19. }
  20. namespace AssetProcessor
  21. {
  22. class PotentialDependencies;
  23. class SpecializedDependencyScanner : public AZStd::enable_shared_from_this<SpecializedDependencyScanner>
  24. {
  25. public:
  26. virtual ~SpecializedDependencyScanner() {}
  27. virtual bool ScanFileForPotentialDependencies(AZ::IO::GenericStream& fileStream, PotentialDependencies& potentialDependencies, int maxScanIteration) = 0;
  28. virtual bool DoesScannerMatchFileData(AZ::IO::GenericStream& fileStream) = 0;
  29. virtual bool DoesScannerMatchFileExtension(const AZStd::string& fullPath) = 0;
  30. virtual AZStd::string GetVersion() const = 0;
  31. virtual AZStd::string GetName() const = 0;
  32. virtual AZ::Crc32 GetScannerCRC() const = 0;
  33. };
  34. }