19#ifndef O2_DCS_DELIVERY_TYPE
20#define O2_DCS_DELIVERY_TYPE
179 if (
str ==
"Raw/Int") {
181 }
else if (
str ==
"Raw/Uint") {
183 }
else if (
str ==
"Raw/Float") {
185 }
else if (
str ==
"Raw/Double") {
187 }
else if (
str ==
"Raw/Bool") {
189 }
else if (
str ==
"Raw/Char") {
191 }
else if (
str ==
"Raw/String") {
193 }
else if (
str ==
"Raw/Binary") {
195 }
else if (
str ==
"Raw/Time") {
197 }
else if (
str ==
"DPVAL/Int") {
199 }
else if (
str ==
"DPVAL/Uint") {
201 }
else if (
str ==
"DPVAL/Float") {
203 }
else if (
str ==
"DPVAL/Double") {
205 }
else if (
str ==
"DPVAL/Bool") {
207 }
else if (
str ==
"DPVAL/Char") {
209 }
else if (
str ==
"DPVAL/String") {
211 }
else if (
str ==
"DPVAL/Binary") {
213 }
else if (
str ==
"DPVAL/Time") {
215 }
else if (
str ==
"Void") {
218 throw std::domain_error(
"\"" +
str +
219 "\" doesn't represent a DeliveryType.");
254 return "DPVAL/Float";
256 return "DPVAL/Double";
260 return "DPVAL/String";
262 return "DPVAL/Binary";
266 throw std::domain_error(
"Illegal DeliveryType.");
303 throw std::domain_error(
"Illegal DeliveryType.");
338 return "S:2;I:1;I:1";
340 return "S:2;I:1;I:1";
342 return "S:2;I:1;I:1";
344 return "S:2;I:1;C:4";
346 return "S:2;I:1;F:1";
348 return "S:2;I:1;D:1";
350 return "S:2;I:1;I:2";
352 return "S:2;I:1;C:55";
354 return "S:2;I:1;C:56";
357 throw std::domain_error(
"Illegal DeliveryType.");
398 throw std::domain_error(
"Illegal DeliveryType.");
GLint GLint GLsizei GLint GLenum GLenum type
std::string show(const DeliveryType type)
bool DPVAL_variant(const DeliveryType type)
size_t dim_buffer_size(const DeliveryType type)
DeliveryType read(const std::string &str)
std::string dim_description(const DeliveryType type)