OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
DataPortStatus.h
Go to the documentation of this file.
1// -*- C++ -*-
20#ifndef RTC_DATAPORTSTATUS_H
21#define RTC_DATAPORTSTATUS_H
22
23#include <vector>
24
25namespace RTC
26{
130
154 inline const char* toString(DataPortStatus status)
155 {
156 static char const* const data_port_status[] = {
157 "PORT_OK",
158 "PORT_ERROR",
159 "BUFFER_ERROR",
160 "BUFFER_FULL",
161 "BUFFER_EMPTY",
162 "BUFFER_TIMEOUT",
163 "SEND_FULL",
164 "SEND_TIMEOUT",
165 "RECV_EMPTY",
166 "RECV_TIMEOUT",
167 "INVALID_ARGS",
168 "PRECONDITION_NOT_MET",
169 "CONNECTION_LOST",
170 "UNKNOWN_ERROR"
171 };
172 return data_port_status[static_cast<std::size_t>(status)];
173 }
174
175 using DataPortStatusList = std::vector<DataPortStatus>;
176
177} // namespace RTC
178
179#endif // RTC_DATAPORTSTATUS_H
DataPortStatus mixin class.
RT-Component.
char const * toString(BufferStatus status)
Convert BufferStatus into the string.
Definition BufferStatus.h:90
DataPortStatus
DataPortStatus return codes.
Definition DataPortStatus.h:114
std::vector< DataPortStatus > DataPortStatusList
Definition DataPortStatus.h:175