From 91286f9dbb85fc2805345ba72468d5f145228be8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Feb 2022 19:31:24 +0100 Subject: refactor: create app class & simplify app options --- src/app/app.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/app/app.hpp') diff --git a/src/app/app.hpp b/src/app/app.hpp index d02c405..cafb864 100644 --- a/src/app/app.hpp +++ b/src/app/app.hpp @@ -2,4 +2,13 @@ #include "app/options.hpp" -void app_start(const AppOptions &app_options); +class App +{ +public: + explicit App(const AppOptions &options); + + void run(); + +private: + const AppOptions &_options; +}; -- cgit v1.2.3-18-g5258