#include "interface/module.h" #include "interface/server.h" #include "interface/event.h" #include "test1/include/api.h" #include using interface::Event; namespace test1 { struct Module: public interface::Module { interface::Server *m_server; Event::Type m_EventType_test1_thing; Module(interface::Server *server): m_server(server), m_EventType_test1_thing(interface::Event::t("test1:thing")) { std::cout<<"test1 construct"<sub_event(this, m_EventType_test1_thing); } ~Module() { std::cout<<"test1 destruct"<(event.p.get())); } } void thing(const Thing *thing) { std::cout<<"test1.thing: some_data="<some_data<