WHY_CPP
0.1
Overview
Getting started
Modules
Class List
File List
whycpp
src
application.h
1
#pragma once
2
3
#include <whycpp/application_config.h>
4
#include <memory>
5
6
class
ApplicationListener
;
7
class
Context
;
8
25
class
Application
{
26
public
:
27
explicit
Application
(
ApplicationListener
* listener,
const
ApplicationConfig
& congig);
28
virtual
~
Application
();
29
30
void
Run();
31
private
:
32
// please, keep tis order, it's important for the object destruction order
33
// Destuction order: [listener, loop, context, sdl context]
34
const
std::unique_ptr<Context> context;
35
const
std::unique_ptr<ApplicationListener> listener;
36
const
ApplicationConfig
config;
37
};
38
Context
Definition:
context.h:26
ApplicationListener
Definition:
application_listener.h:26
ApplicationConfig
Definition:
application_config.h:12
Application
Definition:
application.h:25
Generated by
1.8.11