GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
SceneNameMangler.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 
7 #ifndef SCENENAMEMANGLER_H
8 #define SCENENAMEMANGLER_H
9 #include <unordered_map>
10 #include "GDCore/String.h"
11 
12 namespace gd {
13 
20 class GD_CORE_API SceneNameMangler {
21  public:
30  const gd::String& GetMangledSceneName(const gd::String& sceneName);
31 
32  static SceneNameMangler* Get();
33  static void DestroySingleton();
34 
35  private:
36  SceneNameMangler(){};
37  virtual ~SceneNameMangler(){};
38  static SceneNameMangler* _singleton;
39 
40  std::unordered_map<gd::String, gd::String>
41  mangledSceneNames;
42 };
43 
44 } // namespace gd
45 
46 #endif // SCENENAMEMANGLER_H
Mangle the name of a scene, so that it can be used in code or file names.
Definition: SceneNameMangler.h:20
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24