3#include "../global.hpp"
4#include "../string.hpp"
8#include "../utilities/system_info.hpp"
21 class DiscoveryInformation final
26 DiscoveryInformation(
const DiscoveryInformation &other) =
delete;
27 DiscoveryInformation &operator=(
const DiscoveryInformation &other) =
delete;
29 DiscoveryInformation(DiscoveryInformation &&other) noexcept
30 : DiscoveryInformation(other.list_, other.index_)
34 ~DiscoveryInformation() =
default;
56 if (nodeMapId.empty())
58 if (featureName.empty())
60 if (featureValue.empty())
63 auto result = CExports::DOSetFeatureTyped(list_.get(),
static_cast<size_t>(index_), nodeMapId.c_str(),
64 featureName.c_str(), featureValue.c_str());
90 CExports::DOSetParameterTyped(list_.get(),
static_cast<size_t>(index_), name.c_str(), value.c_str());
131 return (!InternalTryGetProperty(
id, property)) ? true :
false;
143 auto error = InternalTryGetProperty(
id, property);
155 DiscoveryInformation &
operator=(DiscoveryInformation &&other) =
default;
160 DiscoveryInformation(List list,
int index) noexcept
170 auto bufferSizeResult =
171 CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
172 reinterpret_cast<Char *
>(0), bufferSize);
173 if (bufferSizeResult < 0)
174 return CvbException::FromCvbResult(bufferSizeResult,
"failed to get device object info (buffer size)");
183 CExports::DOEntryGetInfoTyped(list_.get(), index_,
static_cast<CExports::DODiscoverInfoCommands
>(
id),
184 reinterpret_cast<Char *
>(&buffer[0]), bufferSize);
186 return CvbException::FromCvbResult(entryResult,
"failed to get device object info");
188 property =
String(
reinterpret_cast<Char *
>(&buffer[0]));
21 class DiscoveryInformation final {
…};
Namespace for driver or device related operations.
Definition decl_composite.hpp:27
ModuleLayer
Level of an access token entry.
Definition driver.hpp:341
@ Unknown
Invalid or not filled yet.
Definition driver.hpp:343
DiscoveryProperties
Properties which can be queried from a DiscoveryInformation entry.
Definition driver.hpp:204
@ String
String value.
Definition driver.hpp:368
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
char Char
Character type for wide characters or unicode characters.
Definition string.hpp:63
T rethrow_exception(T... args)