6 #ifndef EventsContextAnalyzer_H
7 #define EventsContextAnalyzer_H
12 #include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
13 #include "GDCore/String.h"
17 class ObjectsContainer;
18 class ObjectsContainersList;
22 class ParameterMetadata;
46 return referencedObjectOrGroupNames;
60 return objectOrGroupBehaviorNames[objectOrGroupName];
64 std::set<gd::String> referencedObjectOrGroupNames;
65 std::set<gd::String> objectNames;
66 std::map<gd::String, std::set<gd::String>> objectOrGroupBehaviorNames;
77 : platform(platform_) {};
85 static void AnalyzeParameter(
const gd::Platform& platform,
An events worker that will know about the context (the objects container). Useful for workers working...
Definition: ArbitraryEventsWorker.h:136
Analyze events to list all the objects being used in them.
Definition: EventsContextAnalyzer.h:74
const EventsContext & GetEventsContext()
Definition: EventsContextAnalyzer.h:83
Store the results of a search done by EventsContextAnalyzer.
Definition: EventsContextAnalyzer.h:31
const std::set< gd::String > & GetObjectNames()
Get objects referenced in the events, without groups (all groups have been "expanded" to the real obj...
Definition: EventsContextAnalyzer.h:53
const std::set< gd::String > & GetReferencedObjectOrGroupNames()
Get object or group names being referenced in the events.
Definition: EventsContextAnalyzer.h:45
const std::set< gd::String > & GetBehaviorNamesOfObjectOrGroup(const gd::String &objectOrGroupName)
Get behaviors referenced in the events for the given object (or group) name.
Definition: EventsContextAnalyzer.h:59
Class representing an expression used as a parameter of a gd::Instruction. This class is nothing more...
Definition: Expression.h:30
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
Holds references to variables, objects, properties and other containers.
Definition: ProjectScopedContainers.h:34
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24