You.i Engine
YiTaskEvent.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_TASK_EVENT_H_
3 #define _YI_TASK_EVENT_H_
4 
5 #include "event/YiEvent.h"
6 #include "thread/YiTask.h"
7 
18 class CYITaskEvent : public CYIEvent
19 {
20 public:
21  CYITaskEvent(std::unique_ptr<CYITaskBase> pTask);
22  virtual ~CYITaskEvent();
23 
27  void Execute();
28 
29 private:
30  std::unique_ptr<CYITaskBase> m_pTask;
31 
33 };
34 
39 #endif // _YI_TASK_EVENT_H_
void Execute()
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:122
Base class for events.
Definition: YiEvent.h:27
CYITaskEvent(std::unique_ptr< CYITaskBase > pTask)
Event class containing CYITaskBase items. Supports the task being executed when the event is handled...
Definition: YiTaskEvent.h:18
virtual ~CYITaskEvent()