Main application singleton managing lifecycle and global state. More...
#include <application.h>

Public Member Functions | |
| void | Initialize (const AppConfig &config) |
| void | Initialize () |
| void | Tick () |
| void | Shutdown () |
| void | LoadRom (const std::string &path) |
| Controller * | GetController () |
| bool | IsReady () const |
| const AppConfig & | GetConfig () const |
Static Public Member Functions | |
| static Application & | Instance () |
Private Member Functions | |
| Application ()=default | |
| ~Application ()=default | |
| Application (const Application &)=delete | |
| Application & | operator= (const Application &)=delete |
| void | RunStartupActions () |
Private Attributes | |
| std::unique_ptr< Controller > | controller_ |
| AppConfig | config_ |
| std::string | pending_rom_ |
Main application singleton managing lifecycle and global state.
Definition at line 52 of file application.h.
|
privatedefault |
|
privatedefault |
|
privatedelete |
|
static |
Definition at line 20 of file application.cc.
Referenced by yaze::app::GetGlobalEditorManager(), yaze::app::GetGlobalEmulator(), Initialize(), main(), and TickFrame().
| void yaze::Application::Initialize | ( | const AppConfig & | config | ) |
Definition at line 25 of file application.cc.
References config_, controller_, yaze::AppConfig::enable_test_harness, yaze::test::TestManager::Get(), Instance(), LoadRom(), LOG_ERROR, LOG_INFO, pending_rom_, yaze::AppConfig::rom_file, RunStartupActions(), and yaze::AppConfig::test_harness_port.
Referenced by main().

|
inline |
Definition at line 60 of file application.h.
References Initialize().
Referenced by Initialize().

| void yaze::Application::Tick | ( | ) |
Definition at line 115 of file application.cc.
References controller_, and LOG_ERROR.
Referenced by TickFrame().
| void yaze::Application::Shutdown | ( | ) |
Definition at line 203 of file application.cc.
References controller_, and LOG_INFO.
Referenced by main().
| void yaze::Application::LoadRom | ( | const std::string & | path | ) |
Definition at line 141 of file application.cc.
References controller_, LOG_ERROR, LOG_INFO, pending_rom_, and RunStartupActions().
Referenced by Initialize().

|
inline |
Definition at line 72 of file application.h.
References controller_.
Referenced by yaze::app::GetGlobalEditorManager(), and yaze::app::GetGlobalEmulator().
|
inline |
Definition at line 73 of file application.h.
References controller_.
|
inline |
Definition at line 74 of file application.h.
References config_.
|
privatedelete |
|
private |
Definition at line 192 of file application.cc.
References config_, and controller_.
Referenced by Initialize(), and LoadRom().
|
private |
Definition at line 84 of file application.h.
Referenced by GetController(), Initialize(), IsReady(), LoadRom(), RunStartupActions(), Shutdown(), and Tick().
|
private |
Definition at line 85 of file application.h.
Referenced by GetConfig(), Initialize(), and RunStartupActions().
|
private |
Definition at line 90 of file application.h.
Referenced by Initialize(), and LoadRom().