OpenRTM-aist
2.0.2
読み取り中…
検索中…
一致する文字列を見つけられません
BufferStatus.h
[詳解]
1
// -*- C++ -*-
20
#ifndef RTC_BUFFERSTATUS_H
21
#define RTC_BUFFERSTATUS_H
22
23
#include <cstdint>
24
25
namespace
RTC
26
{
56
enum class
BufferStatus
: uint8_t
57
{
58
OK
= 0,
59
BUFFER_ERROR
,
// MSVC has the macro named "ERROR".
60
FULL
,
61
EMPTY
,
62
NOT_SUPPORTED
,
63
TIMEOUT
,
64
PRECONDITION_NOT_MET
,
65
};
66
90
inline
char
const
*
toString
(
BufferStatus
status)
91
{
92
static
char
const
*
const
buffer_status[] = {
93
"BUFFER_OK"
,
94
"BUFFER_ERROR"
,
95
"BUFFER_FULL"
,
96
"BUFFER_EMPTY"
,
97
"NOT_SUPPORTED"
,
98
"TIMEOUT"
,
99
"PRECONDITION_NOT_MET"
100
};
101
return
buffer_status[
static_cast<
std::size_t
>
(status)];
102
}
103
104
}
// namespace RTC
105
106
#endif
// RTC_BUFFERSTATUS_H
RTC
RTコンポーネント
RTC::toString
char const * toString(BufferStatus status)
BufferStatus リターンコードを文字列に変換
Definition
BufferStatus.h:90
RTC::BufferStatus
BufferStatus
BufferStatus リターンコード
Definition
BufferStatus.h:57
RTC::BufferStatus::TIMEOUT
@ TIMEOUT
RTC::BufferStatus::NOT_SUPPORTED
@ NOT_SUPPORTED
RTC::BufferStatus::PRECONDITION_NOT_MET
@ PRECONDITION_NOT_MET
RTC::BufferStatus::BUFFER_ERROR
@ BUFFER_ERROR
RTC::BufferStatus::EMPTY
@ EMPTY
RTC::BufferStatus::FULL
@ FULL
RTC::BufferStatus::OK
@ OK
構築:
1.11.0