GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 全メンバ一覧
designlab::SerialCommunicationThread クラスfinal

#include <serial_communication_thread.h>

公開メンバ関数

 SerialCommunicationThread ()=default
 
 ~SerialCommunicationThread ()=default
 
void Loop ()
 
void SetWriteData (const std::string &str)
 指定した文字列をシリアル通信で送信する. この時,排他制御を行う.
 
std::string GetTopReadData () const
 シリアル通信で受信した最新の文字列を取得する. この時,排他制御を行う.
 
std::vector< std::string > GetAllReadData () const
 シリアル通信で受信した文字列を全て取得する. この時,排他制御を行う.
 
std::vector< std::string > GetReadData (const int num) const
 シリアル通信で受信した文字列の中から指定した数だけ取得する. この時,排他制御を行う.
 
void EndThread ()
 シリアル通信のスレッドを終了する.
 
bool IsEnd () const
 

詳解

serial_communication_thread.h22 行目に定義があります。

構築子と解体子

◆ SerialCommunicationThread()

designlab::SerialCommunicationThread::SerialCommunicationThread ( )
default

◆ ~SerialCommunicationThread()

designlab::SerialCommunicationThread::~SerialCommunicationThread ( )
default

関数詳解

◆ EndThread()

void designlab::SerialCommunicationThread::EndThread ( )
inline

シリアル通信のスレッドを終了する.

serial_communication_thread.h52 行目に定義があります。

被呼び出し関係図:

◆ GetAllReadData()

std::vector< std::string > designlab::SerialCommunicationThread::GetAllReadData ( ) const

シリアル通信で受信した文字列を全て取得する. この時,排他制御を行う.

戻り値
受信した文字列群.

serial_communication_thread.cpp85 行目に定義があります。

◆ GetReadData()

std::vector< std::string > designlab::SerialCommunicationThread::GetReadData ( const int  num) const

シリアル通信で受信した文字列の中から指定した数だけ取得する. この時,排他制御を行う.

引数
[in]num取得する文字列の数.
戻り値
受信した文字列群.

serial_communication_thread.cpp92 行目に定義があります。

◆ GetTopReadData()

std::string designlab::SerialCommunicationThread::GetTopReadData ( ) const

シリアル通信で受信した最新の文字列を取得する. この時,排他制御を行う.

戻り値
受信した文字列.

serial_communication_thread.cpp73 行目に定義があります。

◆ IsEnd()

bool designlab::SerialCommunicationThread::IsEnd ( ) const
inline

serial_communication_thread.h58 行目に定義があります。

被呼び出し関係図:

◆ Loop()

void designlab::SerialCommunicationThread::Loop ( )

serial_communication_thread.cpp27 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ SetWriteData()

void designlab::SerialCommunicationThread::SetWriteData ( const std::string &  str)

指定した文字列をシリアル通信で送信する. この時,排他制御を行う.

引数
[in]str送信する文字列.

serial_communication_thread.cpp61 行目に定義があります。

被呼び出し関係図:

このクラス詳解は次のファイルから抽出されました: