3#include "../global.hpp"
4#include "../string.hpp"
8#include "../utilities/system_info.hpp"
63 if (nodeMapId.empty())
65 if (featureName.empty())
67 if (featureValue.empty())
70 auto result = CExports::DOSetFeatureTyped(list_.get(),
static_cast<size_t>(index_), nodeMapId.c_str(), featureName.c_str(), featureValue.c_str());
72 std::rethrow_exception(CvbException::FromCvbResult(result,
"failed to set device object feature"));
93 auto result = CExports::DOSetParameterTyped(list_.get(),
static_cast<size_t>(index_), name.c_str(), value.c_str());
95 std::rethrow_exception(CvbException::FromCvbResult(result,
"failed to set device object parameter"));
137 return (!InternalTryGetProperty(
id, property)) ? true :
false;
149 auto error = InternalTryGetProperty(
id, property);
151 std::rethrow_exception(error);
182 auto bufferSizeResult = CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
reinterpret_cast<Char *
>(0), bufferSize);
183 if (bufferSizeResult < 0)
184 return CvbException::FromCvbResult(bufferSizeResult,
"failed to get device object info (buffer size)");
192 auto entryResult = CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
reinterpret_cast<Char *
>(&buffer[0]), bufferSize);
194 return CvbException::FromCvbResult(entryResult,
"failed to get device object info");
196 property =
String(
reinterpret_cast<Char *
>(&buffer[0]));
206using Driver::DiscoveryInformation;
Factory object for creating device objects.
Definition: decl_device_factory.hpp:39
ModuleLayer
Level of an access token entry.
Definition: driver.hpp:342
@ 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:70