mFrame
載入中...
搜尋中...
無符合項目
RunnableEvent.h
1
7#ifndef MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE
8#define MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../func/Runnable.h"
18#include "./../lang/Object.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::func {
24 class RunnableEvent;
25} // namespace mframe::func
26
27/* ***************************************************************************************
28 * Class/struct/Struct
29 */
32 /* *************************************************************************************
33 * Variable
34 */
35 private:
36 void (*vFunction)(void);
37
38 /* *************************************************************************************
39 * Abstract Method
40 */
41
42 /* *************************************************************************************
43 * Construct Method
44 */
45 public:
51 RunnableEvent(void (*function)(void));
52
57 virtual ~RunnableEvent(void) override;
58
59 /* *************************************************************************************
60 * Operator Method
61 */
62
63 /* *************************************************************************************
64 * Public Method <Override> - mframe::func::Runnable
65 */
66 public:
67 virtual void run(void) override;
68
69 /* *************************************************************************************
70 * Public Method
71 */
72
73 /* *************************************************************************************
74 * Protected Method
75 */
76
77 /* *************************************************************************************
78 * Private Method
79 */
80
81 /* *************************************************************************************
82 * Static Variable
83 */
84
85 /* *************************************************************************************
86 * Static Method
87 */
88};
89
90/* ***************************************************************************************
91 * End of file
92 */
93
94#endif /* MFRAME_C0CBB109_D7C7_4D02_9E97_1BE3A534DFAE */
Definition RunnableEvent.h:31
virtual void run(void) override
執行方法。
virtual ~RunnableEvent(void) override
Destroy the Runnable Event object.
RunnableEvent(void(*function)(void))
Construct a new Runnable Event object.
Definition Object.h:34
Definition BiConsumer.h:22
Definition Runnable.h:29