5#include "../../global.hpp"
7#include "../../_decl/decl_device.hpp"
9#include "../_decl/decl_device_control.hpp"
23 auto resultQuery = CExports::DCStrCommand(parent_->Handle(),
24 static_cast<CExports::DEVICECTRL_CMD
>(
static_cast<uint32_t
>(command)),
25 cvalue.c_str(), cvalue.size(),
nullptr, outputStringSize);
28 CvbException::FromCvbResult(resultQuery,
"failed to query buffer size with DCStrCommand"));
31 auto resultExec = CExports::DCStrCommand(parent_->Handle(),
32 static_cast<CExports::DEVICECTRL_CMD
>(
static_cast<uint32_t
>(command)),
33 cvalue.c_str(), cvalue.size(), &buffer[0], outputStringSize);
38 String result(cresult.begin(), cresult.end());
45 auto result = CExports::DCBinaryCommand(parent_->Handle(),
46 static_cast<CExports::DEVICECTRL_CMD
>(
static_cast<uint32_t
>(command)),
47 inputBuffer, inputBufferSize, outputBuffer, outputBufferSize);
A specific command to send to the driver.
Definition decl_device_control.hpp:19
String SendStringCommand(DeviceControlCommand command, const String &value)
Sends the given command value to the driver.
Definition detail_device_control.hpp:19
void SendCommand(DeviceControlCommand command, IN_TYPE value, OUT_TYPE &result)
Sends the given command value to the driver.
Definition decl_device_control.hpp:128
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
@ String
String value.
Definition driver.hpp:366
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
T rethrow_exception(T... args)