PythonBuilderMessageSink.h 948 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/Memory/SystemAllocator.h>
  10. #include <AzToolsFramework/API/EditorPythonConsoleBus.h>
  11. namespace PythonAssetBuilder
  12. {
  13. class PythonBuilderMessageSink final
  14. : public AzToolsFramework::EditorPythonConsoleNotificationBus::Handler
  15. {
  16. public:
  17. AZ_CLASS_ALLOCATOR(PythonBuilderMessageSink, AZ::SystemAllocator, 0);
  18. PythonBuilderMessageSink();
  19. ~PythonBuilderMessageSink();
  20. protected:
  21. // AzToolsFramework::EditorPythonConsoleNotificationBus
  22. void OnTraceMessage(AZStd::string_view message) override;
  23. void OnErrorMessage(AZStd::string_view message) override;
  24. void OnExceptionMessage(AZStd::string_view message) override;
  25. };
  26. }