yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::Application Class Reference

Main application singleton managing lifecycle and global state. More...

#include <application.h>

Collaboration diagram for yaze::Application:

Public Member Functions

void Initialize (const AppConfig &config)
 
void Initialize ()
 
void Tick ()
 
void Shutdown ()
 
void LoadRom (const std::string &path)
 
ControllerGetController ()
 
bool IsReady () const
 
const AppConfigGetConfig () const
 

Static Public Member Functions

static ApplicationInstance ()
 

Private Member Functions

 Application ()=default
 
 ~Application ()=default
 
 Application (const Application &)=delete
 
Applicationoperator= (const Application &)=delete
 
void RunStartupActions ()
 

Private Attributes

std::unique_ptr< Controllercontroller_
 
AppConfig config_
 
std::string pending_rom_
 

Detailed Description

Main application singleton managing lifecycle and global state.

Definition at line 52 of file application.h.

Constructor & Destructor Documentation

◆ Application() [1/2]

yaze::Application::Application ( )
privatedefault

◆ ~Application()

yaze::Application::~Application ( )
privatedefault

◆ Application() [2/2]

yaze::Application::Application ( const Application & )
privatedelete

Member Function Documentation

◆ Instance()

Application & yaze::Application::Instance ( )
static

◆ Initialize() [1/2]

void yaze::Application::Initialize ( const AppConfig & config)

◆ Initialize() [2/2]

void yaze::Application::Initialize ( )
inline

Definition at line 60 of file application.h.

References Initialize().

Referenced by Initialize().

Here is the call graph for this function:

◆ Tick()

void yaze::Application::Tick ( )

Definition at line 115 of file application.cc.

References controller_, and LOG_ERROR.

Referenced by TickFrame().

◆ Shutdown()

void yaze::Application::Shutdown ( )

Definition at line 203 of file application.cc.

References controller_, and LOG_INFO.

Referenced by main().

◆ LoadRom()

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().

Here is the call graph for this function:

◆ GetController()

Controller * yaze::Application::GetController ( )
inline

Definition at line 72 of file application.h.

References controller_.

Referenced by yaze::app::GetGlobalEditorManager(), and yaze::app::GetGlobalEmulator().

◆ IsReady()

bool yaze::Application::IsReady ( ) const
inline

Definition at line 73 of file application.h.

References controller_.

◆ GetConfig()

const AppConfig & yaze::Application::GetConfig ( ) const
inline

Definition at line 74 of file application.h.

References config_.

◆ operator=()

Application & yaze::Application::operator= ( const Application & )
privatedelete

◆ RunStartupActions()

void yaze::Application::RunStartupActions ( )
private

Definition at line 192 of file application.cc.

References config_, and controller_.

Referenced by Initialize(), and LoadRom().

Member Data Documentation

◆ controller_

std::unique_ptr<Controller> yaze::Application::controller_
private

◆ config_

AppConfig yaze::Application::config_
private

Definition at line 85 of file application.h.

Referenced by GetConfig(), Initialize(), and RunStartupActions().

◆ pending_rom_

std::string yaze::Application::pending_rom_
private

Definition at line 90 of file application.h.

Referenced by Initialize(), and LoadRom().


The documentation for this class was generated from the following files: