ROS2-Gem-DemoSystemComponent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/Component/Component.h>
  10. #include <ROS2-Gem-Demo/ROS2-Gem-DemoBus.h>
  11. namespace ROS2_Gem_Demo
  12. {
  13. class ROS2_Gem_DemoSystemComponent
  14. : public AZ::Component
  15. , protected ROS2_Gem_DemoRequestBus::Handler
  16. {
  17. public:
  18. AZ_COMPONENT(ROS2_Gem_DemoSystemComponent, "{c5c1e616-e0bd-4b49-afd0-053756e0f455}");
  19. static void Reflect(AZ::ReflectContext* context);
  20. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  21. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  22. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  23. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  24. ROS2_Gem_DemoSystemComponent();
  25. ~ROS2_Gem_DemoSystemComponent();
  26. protected:
  27. ////////////////////////////////////////////////////////////////////////
  28. // ROS2_Gem_DemoRequestBus interface implementation
  29. ////////////////////////////////////////////////////////////////////////
  30. ////////////////////////////////////////////////////////////////////////
  31. // AZ::Component interface implementation
  32. void Init() override;
  33. void Activate() override;
  34. void Deactivate() override;
  35. ////////////////////////////////////////////////////////////////////////
  36. };
  37. }