alternative Standard Libary  0.29.8
std::Program Klassenreferenz

#include <application.hpp>

+ Klassendiagramm für std::Program:
+ Zusammengehörigkeiten von std::Program:

Öffentliche Methoden

 Program ()
 
virtual int Main ()
 

Geschützte Methoden

virtual void OnAppExit (const std::object *sender, const std::exitEventArgs p)
 
virtual void OnAppStart (const std::object *sender, const std::startEventArgs p)
 
virtual void OnAppException (const std::object *sender, const std::exceptionEventArgs p)
 
virtual void OnNewHandler (const std::object *sender, const std::handlerEventsArgs p)
 

Ausführliche Beschreibung

Beschreibung der Konstruktoren und Destruktoren

◆ Program()

std::Program::Program ( )
77  {
78  application::get().ExitAppEvent +=
79  new delegate<Program, exitEventArgs>(this, &Program::OnAppExit);
80  application::get().StartAppEvent +=
81  new delegate<Program, startEventArgs>(this, &Program::OnAppStart);
82  application::get().NewHandlerEvent +=
83  new delegate<Program, handlerEventsArgs>(this, &Program::OnNewHandler);
84  application::get().ExceptionEvent +=
85  new delegate<Program, exceptionEventArgs>(this, &Program::OnAppException);
86  }
virtual void OnNewHandler(const std::object *sender, const std::handlerEventsArgs p)
Definition: application.cpp:96
virtual void OnAppExit(const std::object *sender, const std::exitEventArgs p)
Definition: application.cpp:87
virtual void OnAppException(const std::object *sender, const std::exceptionEventArgs p)
Definition: application.cpp:93
static value_type & get()
Definition: singleton.hpp:45
virtual void OnAppStart(const std::object *sender, const std::startEventArgs p)
Definition: application.cpp:90

Dokumentation der Elementfunktionen

◆ Main()

virtual int std::Program::Main ( )
inlinevirtual

Erneute Implementation in test, test und test.

48  {
49  return 0;
50  }

◆ OnAppException()

void std::Program::OnAppException ( const std::object sender,
const std::exceptionEventArgs  p 
)
protectedvirtual
93  {
94 
95  }

◆ OnAppExit()

void std::Program::OnAppExit ( const std::object sender,
const std::exitEventArgs  p 
)
protectedvirtual
87  {
88  Console::writeline(frmstring("ExitCode: %d", p.getExitCode()));
89  }
size_t frmstring(basic_string< E, TAllocator, TStorage > &dest, const char *format, va_list arg)
Definition: string.hpp:99
static void writeline(const char *cstr)
Definition: iostream.cpp:63
int getExitCode()
Definition: applications_events.hpp:46

◆ OnAppStart()

void std::Program::OnAppStart ( const std::object sender,
const std::startEventArgs  p 
)
protectedvirtual
90  {
91  Console::writeline("App Started");
92  }
static void writeline(const char *cstr)
Definition: iostream.cpp:63

◆ OnNewHandler()

void std::Program::OnNewHandler ( const std::object sender,
const std::handlerEventsArgs  p 
)
protectedvirtual
96  {
97 
98  }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: