context.hpp 539 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: MIT
  2. // SPDX-FileCopyrightText: 2022 Ivan Baidakou
  3. #pragma once
  4. #include "definitions.hpp"
  5. namespace rotor_light {
  6. struct PlannerBase;
  7. struct QueueBase;
  8. /**
  9. *
  10. * \struct Context
  11. * @brief root supervisor initialization tuple
  12. */
  13. struct Context {
  14. /** \brief where store to and process from messages */
  15. QueueBase *queue;
  16. /** \brief where schedule future events */
  17. PlannerBase *planner;
  18. /** \brief function pointer to access to "current time" */
  19. NowFunction now;
  20. };
  21. } // namespace rotor_light