mFrame
載入中...
搜尋中...
無符合項目
CompletionHandler.h
1
8#ifndef MFRAME_F628179A_5A6B_4572_99A4_3338D77AED7B
9#define MFRAME_F628179A_5A6B_4572_99A4_3338D77AED7B
10
11/* ***************************************************************************************
12 * Include
13 */
14
15//----------------------------------------------------------------------------------------
16
17//----------------------------------------------------------------------------------------
18#include "./../lang/Interface.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::io {
24 template <typename R>
25 struct CompletionHandler;
26} // namespace mframe::io
27
28/* ***************************************************************************************
29 * Class/struct/Struct
30 */
31template <typename R = Interface>
33 /* *************************************************************************************
34 * Method
35 */
36
43 virtual void completed(R& result, void* attachment) abstract;
44
50 virtual void failed(void* attachment) abstract;
51};
52
53/* ***************************************************************************************
54 * End of file
55 */
56
57#endif /* MFRAME_F628179A_5A6B_4572_99A4_3338D77AED7B */
Definition AppendableOutputStream.h:24
Definition CompletionHandler.h:32
virtual void completed(R &result, void *attachment) override
Invoked when an operation has completed.
virtual void failed(void *attachment) override
Invoked when an operation fails.
Definition Interface.h:134