3#include "../global.hpp"
4#include "../string.hpp"
8#include "../utilities/system_info.hpp"
60 if (nodeMapId.empty())
62 if (featureName.empty())
64 if (featureValue.empty())
67 auto result = CExports::DOSetFeatureTyped(list_.get(),
static_cast<size_t>(index_), nodeMapId.c_str(), featureName.c_str(), featureValue.c_str());
69 std::rethrow_exception(CvbException::FromCvbResult(result,
"failed to set device object feature"));
90 auto result = CExports::DOSetParameterTyped(list_.get(),
static_cast<size_t>(index_), name.c_str(), value.c_str());
92 std::rethrow_exception(CvbException::FromCvbResult(result,
"failed to set device object parameter"));
134 return (!InternalTryGetProperty(
id, property)) ? true :
false;
146 auto error = InternalTryGetProperty(
id, property);
148 std::rethrow_exception(error);
179 auto bufferSizeResult = CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
reinterpret_cast<Char *
>(0), bufferSize);
180 if (bufferSizeResult < 0)
181 return CvbException::FromCvbResult(bufferSizeResult,
"failed to get device object info (buffer size)");
189 auto entryResult = CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
reinterpret_cast<Char *
>(&buffer[0]), bufferSize);
191 return CvbException::FromCvbResult(entryResult,
"failed to get device object info");
193 property =
String(
reinterpret_cast<Char *
>(&buffer[0]));
203using Driver::DiscoveryInformation;
Factory object for creating device objects.
Definition: decl_device_factory.hpp:34
ModuleLayer
Level of an access token entry.
Definition: driver.hpp:334
@ Unknown
Invalid or not filled yet.
DiscoveryProperties
Properties which can be queried from a DiscoveryInformation entry.
Definition: driver.hpp:205
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24
char Char
Character type for wide characters or unicode characters.
Definition: string.hpp:59