mFrame
載入中...
搜尋中...
無符合項目
mframe::io::OutputStream 結構 參考文件abstract
類別mframe::io::OutputStream的繼承圖:
mframe::lang::Interface mframe::io::AppendableOutputStream mframe::io::SimpleOutputStream hal::serial::SerialPortOutputStream

公開方法(Public Methods)

virtual bool abortWrite (void) override
 取消當前的輸出串流寫入
 
virtual bool writeBusy (void) override
 取得輸出串流是否為寫入忙碌
 
virtual bool write (mframe::lang::Readable &readable, void *attachment, mframe::io::CompletionHandler< int > *handler) override
 寫入
 
bool write (mframe::lang::Readable &readable, mframe::util::Future< int > &future)
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Interface
virtual ~Interface (void)=default
 Destroy the struct object.
 
virtual mframe::lang::ObjectgetObject (void) override
 取得類Object
 

函式成員說明文件

◆ abortWrite()

virtual bool mframe::io::OutputStream::abortWrite ( void )
pure virtual

取消當前的輸出串流寫入

傳回值
  • true : 為成功終止當前的輸出至OutputStream
  • false : 終止失敗,有可能當前輸出串流並未忙碌

實作於 hal::serial::SerialPortOutputStream, 及 mframe::io::SimpleOutputStream.

◆ write() [1/2]

bool mframe::io::OutputStream::write ( mframe::lang::Readable & readable,
mframe::util::Future< int > & future )
inline
參數
readable
future
傳回值
true
false

◆ write() [2/2]

virtual bool mframe::io::OutputStream::write ( mframe::lang::Readable & readable,
void * attachment,
mframe::io::CompletionHandler< int > * handler )
pure virtual

寫入

參數
readable
attachment
handler
傳回值
  • true : 建立寫入成功
  • false : 建立寫入失敗,串流可能正在忙碌中

實作於 hal::serial::SerialPortOutputStream, 及 mframe::io::SimpleOutputStream.

◆ writeBusy()

virtual bool mframe::io::OutputStream::writeBusy ( void )
pure virtual

取得輸出串流是否為寫入忙碌

傳回值
  • true: 輸出串流忙碌中,無法接受新的寫入
  • false: 輸出串流閒置中

實作於 hal::serial::SerialPortOutputStream, 及 mframe::io::SimpleOutputStream.


此結構(structure) 文件是由下列檔案中產生: