CMakeTestbedSystemComponent.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #pragma once
  13. #include <AzCore/Component/Component.h>
  14. #include <CMakeTestbed/CMakeTestbedBus.h>
  15. namespace CMakeTestbed
  16. {
  17. class CMakeTestbedSystemComponent
  18. : public AZ::Component
  19. , protected CMakeTestbedRequestBus::Handler
  20. {
  21. public:
  22. AZ_COMPONENT(CMakeTestbedSystemComponent, "{CD11E7A7-6F0C-4346-B296-4928673712B8}");
  23. static void Reflect(AZ::ReflectContext* context);
  24. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  25. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  26. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  27. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  28. protected:
  29. ////////////////////////////////////////////////////////////////////////
  30. // CMakeTestbedRequestBus interface implementation
  31. ////////////////////////////////////////////////////////////////////////
  32. ////////////////////////////////////////////////////////////////////////
  33. // AZ::Component interface implementation
  34. void Init() override;
  35. void Activate() override;
  36. void Deactivate() override;
  37. ////////////////////////////////////////////////////////////////////////
  38. };
  39. }