-
Notifications
You must be signed in to change notification settings - Fork 9
Core_Application
pojol edited this page Feb 19, 2018
·
4 revisions
App是对进程的一个封装,提供了进程的配置选项还有管理Module的功能。
int main()
{
gsf::Application app;
gsf::AppConfig cfg;
app.init_cfg(cfg);
app.create_module( xxx );
//...
app.run();
return 0;
}- get_app_name
- get_module
- get_machine
- get_uuid
- init_cfg
- create_module
- create_dynamic_module
- delete_module
- run
- exit
在App中帧是一个重要的概念, 它代表了主循环中的一次轮询。每个Module::State都会被分配到不同的帧上处理。在Cfg中可以配置帧的刷新频率