Nebula
Loading...
Searching...
No Matches
Core::ExitHandler Class Reference

#include <exithandler.h>

Detailed Description

ExitHandlers are static objects which register themselves automatically once at startup and are called back from the Core::SysFunc::Exit() static method which is called right before a Nebula application exists.


Please note that the Nebula runtime usually doesn't yet exist when the ExitHandler is created or destroyed, so don't put anything complex into the constructor or destructor of the class!

Inherited by App::GameApplication::GameAppExitHandler, and Attr::AttrExitHandler.

Public Member Functions

 ExitHandler ()
 constructor
 
virtual ~ExitHandler ()
 destructor
 
virtual void OnExit () const
 virtual method called from SysFunc::Exit()
 
const ExitHandlerNext () const
 get pointer to next exit handler in forward linked list
 

Private Attributes

const ExitHandlernextExitHandler
 

Constructor & Destructor Documentation

◆ ExitHandler()

Core::ExitHandler::ExitHandler ( )

constructor

◆ ~ExitHandler()

Core::ExitHandler::~ExitHandler ( )
virtual

destructor

Member Function Documentation

◆ Next()

const ExitHandler * Core::ExitHandler::Next ( ) const

get pointer to next exit handler in forward linked list

◆ OnExit()

void Core::ExitHandler::OnExit ( ) const
virtual

virtual method called from SysFunc::Exit()

Reimplemented in App::GameApplication::GameAppExitHandler, and Attr::AttrExitHandler.

Member Data Documentation

◆ nextExitHandler

const ExitHandler* Core::ExitHandler::nextExitHandler
private

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