Main Page
Namespaces
Classes
Files
File List
File Members
src
lib
rtm
BufferStatus.h
Go to the documentation of this file.
1
// -*- C++ -*-
20
#ifndef RTC_BUFFERSTATUS_H
21
#define RTC_BUFFERSTATUS_H
22
23
namespace
RTC
24
{
52
class
BufferStatus
53
{
54
public
:
84
enum
Enum
85
{
86
BUFFER_OK
= 0,
87
BUFFER_ERROR
,
88
BUFFER_FULL
,
89
BUFFER_EMPTY
,
90
NOT_SUPPORTED
,
91
TIMEOUT
,
92
PRECONDITION_NOT_MET
93
};
94
118
static
const
char
*
toString
(
Enum
status)
119
{
120
const
char
* str[] = {
121
"BUFFER_OK"
,
122
"BUFFER_ERROR"
,
123
"BUFFER_FULL"
,
124
"BUFFER_EMPTY"
,
125
"NOT_SUPPORTED"
,
126
"TIMEOUT"
,
127
"PRECONDITION_NOT_MET"
128
};
129
return
str[status];
130
}
131
};
132
};
// namespace RTC
133
157
#define BUFFERSTATUS_ENUM \
158
typedef ::RTC::BufferStatus::Enum ReturnCode; \
159
using ::RTC::BufferStatus::BUFFER_OK; \
160
using ::RTC::BufferStatus::BUFFER_ERROR; \
161
using ::RTC::BufferStatus::BUFFER_FULL; \
162
using ::RTC::BufferStatus::BUFFER_EMPTY; \
163
using ::RTC::BufferStatus::NOT_SUPPORTED; \
164
using ::RTC::BufferStatus::TIMEOUT; \
165
using ::RTC::BufferStatus::PRECONDITION_NOT_MET;
166
167
#endif // RTC_BUFFERSTATUS_H
RTC::BufferStatus::BUFFER_EMPTY
Definition:
BufferStatus.h:89
RTC
RT-Component.
Definition:
ArtExecutionContext.cpp:29
RTC::BufferStatus::BUFFER_FULL
Definition:
BufferStatus.h:88
RTC::BufferStatus::NOT_SUPPORTED
Definition:
BufferStatus.h:90
RTC::BufferStatus::toString
static const char * toString(Enum status)
Convert BufferStatus into the string.
Definition:
BufferStatus.h:118
RTC::BufferStatus
BufferStatus mixin class.
Definition:
BufferStatus.h:52
RTC::BufferStatus::Enum
Enum
DataPortStatus return codes.
Definition:
BufferStatus.h:84
RTC::BufferStatus::BUFFER_ERROR
Definition:
BufferStatus.h:87
RTC::BufferStatus::PRECONDITION_NOT_MET
Definition:
BufferStatus.h:92
RTC::BufferStatus::BUFFER_OK
Definition:
BufferStatus.h:86
RTC::BufferStatus::TIMEOUT
Definition:
BufferStatus.h:91
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:50