SettingsRegistryBuilder.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <AssetBuilderSDK/AssetBuilderBusses.h>
  10. #include <AzCore/JSON/writer.h>
  11. #include <AzCore/Settings/SettingsRegistry.h>
  12. #include <AzCore/std/containers/stack.h>
  13. #include <AzCore/std/containers/vector.h>
  14. #include <AzCore/std/string/string.h>
  15. namespace AssetProcessor
  16. {
  17. class SettingsRegistryBuilder
  18. : public AssetBuilderSDK::AssetBuilderCommandBus::Handler
  19. {
  20. public:
  21. SettingsRegistryBuilder();
  22. ~SettingsRegistryBuilder() override = default;
  23. bool Initialize();
  24. void Uninitialize();
  25. void ShutDown() override;
  26. void CreateJobs(const AssetBuilderSDK::CreateJobsRequest& request, AssetBuilderSDK::CreateJobsResponse& response);
  27. void ProcessJob(const AssetBuilderSDK::ProcessJobRequest& request, AssetBuilderSDK::ProcessJobResponse& response);
  28. protected:
  29. AZStd::vector<AZStd::string> ReadExcludesFromRegistry() const;
  30. private:
  31. AZ::Uuid m_builderId;
  32. AZ::Data::AssetType m_assetType;
  33. bool m_isShuttingDown{ false };
  34. };
  35. } // namespace AssetProcessor