Game Develop C++ Platform: ProfileEvent.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
ProfileEvent.h
Go to the documentation of this file.
1
6 #if defined(GD_IDE_ONLY)
7
8 #ifndef PROFILEEVENT_H
9 #define PROFILEEVENT_H
10 #include "GDCore/Events/Event.h"
11 #include "GDCpp/profile.h"
12
16 class GD_API ProfileEvent : public gd::BaseEvent
17 {
18 public:
19 ProfileEvent();
20 ProfileEvent(const ProfileEvent & event);
21 virtual ~ProfileEvent();
22
23 ProfileEvent& operator=(const ProfileEvent & event);
24 virtual gd::BaseEventSPtr Clone() const { return boost::shared_ptr<gd::BaseEvent>(new ProfileEvent(*this));}
25
26 void SetPreviousProfileEvent( boost::shared_ptr<ProfileEvent> previousProfileEvent_ ) { previousProfileEvent = previousProfileEvent_; }
27
28 virtual bool IsExecutable() const {return true;}
29 virtual std::string GenerateEventCode(gd::EventsCodeGenerator & codeGenerator, gd::EventsCodeGenerationContext & context);
30
31 unsigned int index;
32
33 private:
34 void Init(const ProfileEvent & event);
35
36 boost::shared_ptr<ProfileEvent> previousProfileEvent;
37 };
38
39 #endif // PROFILEEVENT_H
40
41 #endif
42