Game Develop Core: EventsVariablesFinder.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
EventsVariablesFinder.h
Go to the documentation of this file.
1
5 #ifndef EVENTSVARIABLESFINDER_H
6 #define EVENTSVARIABLESFINDER_H
7 #include <string>
8 #include <vector>
9 #include <set>
10 #include "GDCore/Events/Event.h"
11 namespace gd { class Instruction; }
12 namespace gd { class Platform; }
13 namespace gd { class Project; }
14 namespace gd { class Layout; }
15
16 namespace gd
17 {
18
24 class EventsVariablesFinder
25 {
26 public:
32 static std::set < std::string > FindAllGlobalVariables(const gd::Platform & platform, const gd::Project & project);
33
40 static std::set < std::string > FindAllLayoutVariables(const gd::Platform & platform, const gd::Project & project, const gd::Layout & layout);
41
42 private:
43
53 static std::set < std::string > FindArgumentsInInstructions(const gd::Platform & platform, const gd::Project & project, const gd::Layout & layout, const std::vector < gd::Instruction > & instructions, bool instructionsAreConditions, const std::string & parameterType);
54
64 static std::set < std::string > FindArgumentsInEvents(const gd::Platform & platform, const gd::Project & project, const gd::Layout & layout, const std::vector < gd::BaseEventSPtr > & events, const std::string & parameterType);
65
66 EventsVariablesFinder() {};
67 virtual ~EventsVariablesFinder() {};
68 };
69
70 }
71
72 #endif // EVENTSVARIABLESFINDER_H