supervisor_wx_test.h 714 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. //
  3. // Copyright (c) 2019-2020 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
  4. //
  5. // Distributed under the MIT Software License
  6. //
  7. #include "rotor/wx.hpp"
  8. #include "access.h"
  9. namespace rotor {
  10. namespace test {
  11. class RotorApp : public wxAppConsole {
  12. public:
  13. virtual ~RotorApp() override {}
  14. };
  15. struct supervisor_wx_test_t : public rotor::wx::supervisor_wx_t {
  16. using rotor::wx::supervisor_wx_t::supervisor_wx_t;
  17. state_t &get_state() noexcept { return state; }
  18. auto &get_leader_queue() { return access<to::locality_leader>()->access<to::queue>(); }
  19. subscription_t &get_subscription() noexcept { return subscription_map; }
  20. };
  21. } // namespace test
  22. } // namespace rotor