重构整个模块系统,移除旧的模块注册和初始化机制,改为直接继承 Module 基类的方式。新增 Node 类的事件监听便捷方法,简化事件处理流程。 主要变更包括: 1. 移除 module_config.h、module_initializer.h 和 module_registry.h 等旧模块系统文件 2. 新增 core/module.h 作为新模块系统基础 3. 为 Node 类添加 addListener/removeListener 等事件便捷方法 4. 将原有模块(Logger, Config, Platform等)重构为继承 Module 的新实现 5. 更新 Application 类以支持新的模块管理方式 6. 修改 hello_module 示例展示新模块系统用法 |
||
|---|---|---|
| .. | ||
| config.json | ||
| hello_module.cpp | ||
| hello_module.h | ||
| main.cpp | ||