alternative Standard Libary  0.29.8
test Klassenreferenz
+ Klassendiagramm für test:
+ Zusammengehörigkeiten von test:

Öffentliche Methoden

int Main ()
 
override int Main ()
 
override 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

Dokumentation der Elementfunktionen

◆ Main() [1/3]

override int test::Main ( )
inlinevirtual

Erneute Implementation von std::Program.

12  {
13  string var = string("Hello world");
14  string outstring = std::frmstring(
15  "%s from asSTL v. %s",
16  var.c_str(),
17  asstlVersion().c_str() );
18  Console::writeline(outstring);
19  return 0;
20  }
string asstlVersion()
Definition: asstl.cpp:30
const value_type * c_str() const
Definition: basic_string.hpp:199
size_t frmstring(basic_string< E, TAllocator, TStorage > &dest, const char *format, va_list arg)
Definition: string.hpp:99
basic_string< char > string
Definition: string.hpp:44

◆ Main() [2/3]

override int test::Main ( )
inlinevirtual

Erneute Implementation von std::Program.

26  {
27  vec2();
28  vec3();
29  vec4();
30 
31  std::math::mat4f mat = std::math::matrix4x4_identity<float>();
32 
33  std::Console::writeline( std::frmstring("mat4:\n%s" ,mat.to_string().c_str()) );
34 
35 
36 
37  return 0;
38  }
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
Definition: matrix4x4.hpp:43
std::basic_string< E, TAllocator, TStorage > to_string()
Definition: matrix4x4.hpp:155

◆ Main() [3/3]

int test::Main ( )
inlinevirtual

Erneute Implementation von std::Program.

31  {
32  Server server;
33 
35  (this, &test::Server_OnMessageSent);
37  (this, &test::Server_OnMessageSent);
39  (this, &test::Server_OnMessageSent);
40 
41  server.SendMessage(serverEventArgs(std::string("Hallo C++ EventSystem")));
42 
43  std::Console::writeline("Bitte druecken Sie eine Taste ...");
44  _getch();
45 
46  return 0;
47  }
Definition: main.cpp:16
static void writeline(const char *cstr)
Definition: iostream.cpp:63
Definition: main.cpp:9
void SendMessage(serverEventArgs p_msg)
Definition: main.cpp:21
std::event< serverEventArgs > MessageSent
Definition: main.cpp:19
Definition: event.hpp:57

◆ OnAppException()

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

◆ OnAppExit()

void std::Program::OnAppExit ( const std::object sender,
const std::exitEventArgs  p 
)
protectedvirtualinherited
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 
)
protectedvirtualinherited
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 
)
protectedvirtualinherited
96  {
97 
98  }

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