OV2.0 c++ configuration API (#9829)

* New configuration API

* Review fix

* review coments

* fixed device name map

* fixed header

* code stile

* fixed optimization capabilities

* flatten properties

* dox fix

* doc

* merge conflicts

* fixed merge conflicts

* Fixed subobject linkage warning

* foramt fix
This commit is contained in:
Anton Pankratov
2022-01-21 18:44:41 +03:00
committed by GitHub
parent cf84f43b78
commit 50da8c4aed
154 changed files with 2038 additions and 873 deletions

View File

@@ -107,11 +107,11 @@ int main(int argc, char* argv[]) {
// Query supported metrics and print all of them
slog::info << "\tSUPPORTED_METRICS: " << slog::endl;
std::vector<std::string> supportedMetrics = core.get_metric(device, METRIC_KEY(SUPPORTED_METRICS));
std::vector<std::string> supportedMetrics = core.get_property(device, METRIC_KEY(SUPPORTED_METRICS));
for (auto&& metricName : supportedMetrics) {
if (metricName != METRIC_KEY(SUPPORTED_METRICS) && metricName != METRIC_KEY(SUPPORTED_CONFIG_KEYS)) {
slog::info << "\t\t" << metricName << " : " << slog::flush;
print_any_value(core.get_metric(device, metricName));
print_any_value(core.get_property(device, metricName));
}
}
@@ -120,10 +120,10 @@ int main(int argc, char* argv[]) {
supportedMetrics.end()) {
slog::info << "\tSUPPORTED_CONFIG_KEYS (default values): " << slog::endl;
std::vector<std::string> supportedConfigKeys =
core.get_metric(device, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
core.get_property(device, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
for (auto&& configKey : supportedConfigKeys) {
slog::info << "\t\t" << configKey << " : " << slog::flush;
print_any_value(core.get_config(device, configKey));
print_any_value(core.get_property(device, configKey));
}
}