source: branches/work_320/Main.h @ 679

Revision 679, 1.2 KB checked in by jls17, 5 years ago (diff)
  • fixed some memory leaks in case memory allocation fails in ARFieldList.cpp and ARSchemaList.cpp
  • small changes to the initialization of the crash handler
Line 
1//Copyright (C) 2012 John Luthgers | jls17
2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
15//    along with ARInside.  If not, see <http://www.gnu.org/licenses/>.
16
17#pragma once
18
19#include "util/AppTimer.h"
20
21// forward declarations
22class AppConfig;
23
24class CMain
25{
26public:
27        CMain();
28        void SetCrashHandler(void *pAddr);
29        int Run(int argc, char* argv[]);
30
31private:
32        const char* GetPlatformString() const;
33        void OutputARInsideBanner();
34
35        int StartServerMode(AppConfig &appConfig);
36        int StartFileMode(AppConfig &appConfig);
37
38        static void DoDeleteExistingFiles(std::string path);
39
40private:
41        CAppTimer mTimer;
42        void*     crashHandler;
43};
Note: See TracBrowser for help on using the repository browser.