1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include "plugin_base.h"
- namespace rotor::plugin {
- struct starter_plugin_t : public plugin_base_t {
- using plugin_base_t::plugin_base_t;
-
- static const void *class_identity;
- const void *identity() const noexcept override;
- void activate(actor_base_t *actor) noexcept override;
- void deactivate() noexcept override;
-
- template <typename Handler> subscription_info_ptr_t subscribe_actor(Handler &&handler) noexcept;
-
- template <typename Handler>
- subscription_info_ptr_t subscribe_actor(Handler &&handler, const address_ptr_t &addr) noexcept;
- bool handle_init(message::init_request_t *) noexcept override;
- void handle_start(message::start_trigger_t *message) noexcept override;
- bool handle_subscription(message::subscription_t &message) noexcept override;
-
- void on_start(message::start_trigger_t &message) noexcept;
- private:
- subscription_container_t tracked;
- bool configured = false;
- };
- }
|