GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
EventsIdentifiersFinder.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 #ifndef EVENTSIDENTIFIERSFINDER_H
7 #define EVENTSIDENTIFIERSFINDER_H
8 #include <set>
9 #include <vector>
10 #include "GDCore/Events/Event.h"
11 #include "GDCore/String.h"
12 namespace gd {
13 class Instruction;
14 class Platform;
15 class Object;
16 class Project;
17 class Layout;
18 } // namespace gd
19 
20 namespace gd {
21 
31  public:
33  virtual ~EventsIdentifiersFinder(){};
34 
47  static std::set<gd::String> FindAllIdentifierExpressions(
48  const gd::Platform& platform,
49  const gd::Project& project,
50  const gd::Layout& layout,
51  const gd::String& identifierType,
52  const gd::String& objectName = "");
53 
54  private:
70  static void FindArgumentsInEventsAndDependencies(
71  std::set<gd::String>& results,
72  const gd::Platform& platform,
73  const gd::Project& project,
74  const gd::Layout& layout,
75  const gd::String& identifierType,
76  const gd::String& objectName = "");
77 };
78 
79 } // namespace gd
80 
81 #endif // EVENTSIDENTIFIERSFINDER_H
Perform a search over a layout, searching for layout or object custom identifiers.
Definition: EventsIdentifiersFinder.h:30
static std::set< gd::String > FindAllIdentifierExpressions(const gd::Platform &platform, const gd::Project &project, const gd::Layout &layout, const gd::String &identifierType, const gd::String &objectName="")
Definition: EventsIdentifiersFinder.cpp:194
Represent a layout ( also called a scene ) of a project.
Definition: Layout.h:40
Base class for implementing a platform.
Definition: Platform.h:42
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24