ValidatorBus.h 812 B

1234567891011121314151617181920212223242526272829303132
  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 "FunctorValidator.h"
  10. #include <AzCore/EBus/EBus.h>
  11. namespace ProjectSettingsTool
  12. {
  13. class ValidatorTraits
  14. : public AZ::EBusTraits
  15. {
  16. public:
  17. using Bus = AZ::EBus<ValidatorTraits>;
  18. // Bus Configuration
  19. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  20. virtual FunctorValidator* GetValidator(FunctorValidator::FunctorType) = 0;
  21. virtual void TrackValidator(FunctorValidator*) = 0;
  22. };
  23. typedef AZ::EBus<ValidatorTraits> ValidatorBus;
  24. } // namespace ProjectSettingsTool