mFrame
載入中...
搜尋中...
無符合項目
SimpleOutputStream.h
1
7#ifndef MFRAME_D2B29695_485B_43BA_B54E_A4525BA4E64F
8#define MFRAME_D2B29695_485B_43BA_B54E_A4525BA4E64F
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../func/Runnable.h"
18#include "./../io/OutputStream.h"
19#include "./../lang/Object.h"
20
21/* ***************************************************************************************
22 * Namespace
23 */
24namespace mframe::io {
25 class SimpleOutputStream;
26}
27
28/* ***************************************************************************************
29 * Class/Interface/Struct/Enum
30 */
34 /* *************************************************************************************
35 * Variable
36 */
37 private:
39 void* vAttachment;
40
41 protected:
42 int vResult;
43 mframe::lang::Readable* vReadable;
44
45 /* *************************************************************************************
46 * Abstract Method
47 */
48
49 /* *************************************************************************************
50 * Construct Method
51 */
52 public:
58
63 virtual ~SimpleOutputStream(void) override;
64
65 /* *************************************************************************************
66 * Operator Method
67 */
68
69 /* *************************************************************************************
70 * Public Method <Override> mframe::io::OutputStream
71 */
72 public:
73 virtual bool abortWrite(void) override;
74
75 virtual bool writeBusy(void) override;
76
77 virtual bool write(mframe::lang::Readable& readable,
78 void* attachment,
79 mframe::io::CompletionHandler<int>* handler) override;
80
81 /* *************************************************************************************
82 * Public Method <Override> mframe::func::Runnable
83 */
84 public:
85 virtual void run(void) override;
86
87 /* *************************************************************************************
88 * Public Method
89 */
90
91 /* *************************************************************************************
92 * Protected Method
93 */
94
95 /* *************************************************************************************
96 * Private Method
97 */
98
99 /* *************************************************************************************
100 * Static Variable
101 */
102
103 /* *************************************************************************************
104 * Static Method
105 */
106};
107
108/* ***************************************************************************************
109 * End of file
110 */
111
112#endif /* MFRAME_D2B29695_485B_43BA_B54E_A4525BA4E64F */
Definition SimpleOutputStream.h:33
SimpleOutputStream(void)
Construct a new object.
virtual bool writeBusy(void) override
取得輸出串流是否為寫入忙碌
virtual bool write(mframe::lang::Readable &readable, void *attachment, mframe::io::CompletionHandler< int > *handler) override
寫入
virtual ~SimpleOutputStream(void) override
Destroy the object.
virtual bool abortWrite(void) override
取消當前的輸出串流寫入
virtual void run(void) override
執行方法。
Definition Object.h:34
Definition AppendableOutputStream.h:24
Definition Runnable.h:29
Definition CompletionHandler.h:32
Definition OutputStream.h:31
Definition Readable.h:31