NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
MyApp Class Reference

This class represents the application controller, which will create the main frame of the actual application. It will also include the single instance checking and the necessary DDE command interface handling. More...

#include <NumeReWindow.h>

Inheritance diagram for MyApp:
Collaboration diagram for MyApp:

Public Member Functions

 ~MyApp ()
 Empty destructor. More...
 
virtual bool OnInit () override
 "Main program" equivalent: the program execution "starts" here. If we detect an already instance of NumeRe, we will send the command line contents to the existing instance and cancel the start up here. More...
 
virtual int OnExit () override
 Called on application shut down. Will free the memory of the IPC class instances. More...
 
virtual bool OnExceptionInMainLoop () override
 This handler should be called, if an unhandled exception propagated through the event loop. We'll try to recover from this issue here. However, it might not be possible. More...
 

Private Attributes

wxSingleInstanceChecker * m_singlinst
 
DDE::Serverm_DDEServer
 

Detailed Description

This class represents the application controller, which will create the main frame of the actual application. It will also include the single instance checking and the necessary DDE command interface handling.

Definition at line 150 of file NumeReWindow.h.

Constructor & Destructor Documentation

◆ ~MyApp()

MyApp::~MyApp ( )

Empty destructor.

Definition at line 401 of file NumeReWindow.cpp.

Member Function Documentation

◆ OnExceptionInMainLoop()

bool MyApp::OnExceptionInMainLoop ( )
overridevirtual

This handler should be called, if an unhandled exception propagated through the event loop. We'll try to recover from this issue here. However, it might not be possible.

Returns
bool

Definition at line 434 of file NumeReWindow.cpp.

References _guilang, DetachedLogger::error(), g_logger, Language::get(), and toString().

Here is the call graph for this function:

◆ OnExit()

int MyApp::OnExit ( )
overridevirtual

Called on application shut down. Will free the memory of the IPC class instances.

Returns
int

Definition at line 413 of file NumeReWindow.cpp.

References m_DDEServer, and m_singlinst.

◆ OnInit()

bool MyApp::OnInit ( )
overridevirtual

Member Data Documentation

◆ m_DDEServer

DDE::Server* MyApp::m_DDEServer
private

Definition at line 160 of file NumeReWindow.h.

Referenced by OnExit(), and OnInit().

◆ m_singlinst

wxSingleInstanceChecker* MyApp::m_singlinst
private

Definition at line 159 of file NumeReWindow.h.

Referenced by OnExit(), and OnInit().


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