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"));
102 return (*
this)[static_cast<DiscoveryProperties>(1000)];
114 return static_cast<ModuleLayer>(std::stoi((*
this)[static_cast<DiscoveryProperties>(1001)]));
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]));
203 using Driver::DiscoveryInformation;
ModuleLayer
Level of an access token entry.
Definition: driver.hpp:333
Factory object for creating device objects.
Definition: decl_device_factory.hpp:33
Root namespace for the Image Manager interface.
Definition: version.hpp:11
Invalid or not filled yet.
DiscoveryProperties
Properties which can be queried from a DiscoveryInformation entry.
Definition: driver.hpp:204