![]() |
Zen
A cross-platform functional programming language
|
Singleton class represents application. More...
#include <Application.hpp>
Classes | |
| class | Impl |
| Application implementation class. More... | |
Public Member Functions | |
| Application (int argc, char *argv[]) | |
| Default constructor. | |
| ~Application () | |
| Destructor. | |
| zbl::Engine & | getEngine () |
| Return the singleton engine instance for the application. | |
| int | pump () |
| pumps the engine queue once and exits. | |
| void | start () |
| pumps the engine queue continuously in a loop until exit() is called. | |
Private Attributes | |
| zbl::Engine | _engine |
| The singleton engine instance. | |
| Impl * | _impl |
| Implementation instance. | |
Singleton class represents application.
Manages the internal application class
| Application | ( | int | argc, |
| char * | argv[] | ||
| ) |
Default constructor.
| argc | Argument count |
| argv | List of arguments |
| zbl::Engine& getEngine | ( | ) | [inline] |
Return the singleton engine instance for the application.
| int pump | ( | ) | [inline] |
pumps the engine queue once and exits.