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 {
53  {
54  public:
84  enum Enum
85  {
86  BUFFER_OK = 0,
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
RT-Component.
static const char * toString(Enum status)
Convert BufferStatus into the string.
Definition: BufferStatus.h:118
BufferStatus mixin class.
Definition: BufferStatus.h:52
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:50