OV 2.0 c++ configuration API (#9870)

* 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

* Fixed unity test build

* Merge conflict fixes

* Fixed variadic
This commit is contained in:
Anton Pankratov
2022-01-25 12:43:56 +03:00
committed by GitHub
parent 3bd6eb6dcd
commit f45991bd64
155 changed files with 2124 additions and 948 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));
}
}