VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
DebugManager.h
1 /*
2  * Copyright (C) 2014 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef DEBUGMANAGER_H
18 #define DEBUGMANAGER_H
19 
20 #include <QList>
21 #include <QString>
22 
23 class LevelProgression;
24 
34 class DebugManager {
35 public:
42  LevelProgression* getDebugLevelProgression() const { return mDebugLevelProgression; }
43 
47  static DebugManager* getInstance();
48 
49 private:
50  DebugManager();
51  ~DebugManager();
52 
53  void loadFromJson();
54 
55  LevelProgression* mDebugLevelProgression = nullptr;
56 
57  static DebugManager* sInstance;
58  static const char* DEBUG_JSON_PATH;
59 };
60 
61 #endif // DEBUGMANAGER_H
static DebugManager * getInstance()
Returns the singleton instance of DebugManager.
Class to manage debug options defined in debug.json data file.
Definition: DebugManager.h:34
LevelProgression * getDebugLevelProgression() const
Returns the LevelProgression constructed from debug option data.
Definition: DebugManager.h:42
Grouping of related Environments together into a logical, ordered list.
Definition: LevelProgression.h:34