mFrame
載入中...
搜尋中...
無符合項目
EntryPoint.h
1
8#ifndef MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31
9#define MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31
10
11/* ***************************************************************************************
12 * Include
13 */
14
15//----------------------------------------------------------------------------------------
16
17//----------------------------------------------------------------------------------------
18#include "./../lang/Object.h"
19#include "./../sys/Thread.h"
20
21/* ***************************************************************************************
22 * Namespace
23 */
28namespace ufm::sys {
29 class EntryPoint;
30} // namespace ufm::sys
31
32/* ***************************************************************************************
33 * Class/Interface/Struct/Enum
34 */
35
46 /* *************************************************************************************
47 * Variable
48 */
49 private:
54 void (*mSetup)(ufm::sys::Thread*);
55
60 void (*mLoop)(ufm::sys::Thread*);
61
62 /* *************************************************************************************
63 * Abstract Method
64 */
65
66 /* *************************************************************************************
67 * Construct Method
68 */
69 public:
76 EntryPoint(void (*setup)(ufm::sys::Thread*), void (*loop)(ufm::sys::Thread*));
77
83 virtual ~EntryPoint(void) override;
84
85 /* *************************************************************************************
86 * Operator Method
87 */
88
89 /* *************************************************************************************
90 * Override Method- ufm::func::Runnable
91 */
92 public:
93 virtual void run(void) override;
94
95 /* *************************************************************************************
96 * Public Method
97 */
98
99 /* *************************************************************************************
100 * Protected Method
101 */
102
103 /* *************************************************************************************
104 * Private Method
105 */
106
107 /* *************************************************************************************
108 * Static Variable
109 */
110
111 /* *************************************************************************************
112 * Static Method
113 */
114};
115
116/* ***************************************************************************************
117 * End of file
118 */
119
120#endif /* MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31 */
物件基底類別
Definition Object.h:63
應用程式進入點管理類別
Definition EntryPoint.h:45
virtual ~EntryPoint(void) override
銷毀 EntryPoint 物件
virtual void run(void) override
執行方法
EntryPoint(void(*setup)(ufm::sys::Thread *), void(*loop)(ufm::sys::Thread *))
建構 EntryPoint 物件
執行緒類別
Definition Thread.h:49
系統功能相關的命名空間
Definition Object.h:31
[Interface] 可執行函數式介面
Definition Runnable.h:40