| 469 | /////////////////////////////////////////////////////////////////////////// |
| 470 | |
| 471 | void ISPCDevice::setObjectParam( |
| 472 | OSPObject object, const char *name, OSPDataType type, const void *mem) |
| 473 | { |
| 474 | if (type == OSP_UNKNOWN) |
| 475 | throw std::runtime_error("cannot set OSP_UNKNOWN parameter type"); |
| 476 | |
| 477 | if (type == OSP_BYTE || type == OSP_RAW) { |
| 478 | setParamOnObject(object, name, *(const byte_t *)mem); |
| 479 | return; |
| 480 | } |
| 481 | |
| 482 | setParamFcns[type](object, name, mem); |
| 483 | } |
| 484 | |
| 485 | void ISPCDevice::removeObjectParam(OSPObject _object, const char *name) |
| 486 | { |
no test coverage detected