mFrame
載入中...
搜尋中...
無符合項目
AppendableOutputStream.h
1
7#ifndef MFRAME_F49C4A53_E633_4A18_B37A_23E496773E8D
8#define MFRAME_F49C4A53_E633_4A18_B37A_23E496773E8D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../io/OutputStream.h"
18#include "./../lang/Appendable.h"
19#include "./../lang/Updatable.h"
20
21/* ***************************************************************************************
22 * Namespace
23 */
24namespace mframe::io {
26} // namespace mframe::io
27
28/* ***************************************************************************************
29 * Class/Interface/Struct/Enum
30 */
34 /* *************************************************************************************
35 * Variable
36 */
37 protected:
38 mframe::lang::Appendable& mAppendable;
39
40 /* *************************************************************************************
41 * Abstract Method
42 */
43
44 /* *************************************************************************************
45 * Construct Method
46 */
47 public:
53
58 virtual ~AppendableOutputStream(void) override;
59
60 /* *************************************************************************************
61 * Operator Method
62 */
63
64 /* *************************************************************************************
65 * Public Method <Override> - mframe::lang::Appendable
66 */
67 public:
68 virtual int remaining(void) const override;
69
70 virtual int putByte(const char data) override;
71
72 virtual int put(mframe::lang::Readable& Readable) override;
73
74 /* *************************************************************************************
75 * Public Method <Override> - mframe::lang::Updatable
76 */
77 public:
78 virtual void update(void) override;
79
80 /* *************************************************************************************
81 * Public Method
82 */
83
84 /* *************************************************************************************
85 * Protected Method
86 */
87 protected:
92 virtual void onBufferPutEvent(void);
93
94 /* *************************************************************************************
95 * Private Method
96 */
97
98 /* *************************************************************************************
99 * Static Variable
100 */
101
102 /* *************************************************************************************
103 * Static Method
104 */
105};
106
107/* ***************************************************************************************
108 * End of file
109 */
110
111#endif /* MFRAME_F49C4A53_E633_4A18_B37A_23E496773E8D */
Definition AppendableOutputStream.h:33
virtual int remaining(void) const override
取得緩衝區剩餘空閒字節數。
virtual void onBufferPutEvent(void)
當有字元寫入至緩衝區時調用。
virtual ~AppendableOutputStream(void) override
Destroy the Output Stream Buffer object.
AppendableOutputStream(mframe::lang::Appendable &appendable)
Construct a new Output Stream Buffer object.
virtual void update(void) override
更新程序
virtual int put(mframe::lang::Readable &Readable) override
將readable內資料輸入至緩衝區。
virtual int putByte(const char data) override
將字節輸入至緩衝區。
Definition AppendableOutputStream.h:24
Definition OutputStream.h:31
可附加的 <Interface>
Definition Appendable.h:36
Definition Readable.h:31
Definition Updatable.h:29