DeviceSpec: Rename server to provider

This commit is contained in:
2025-01-07 20:03:03 -04:00
parent b9faa147e3
commit dda8527e45
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ std::ostream& operator<<(
for (auto it = spec.apiParams.begin(); it != spec.apiParams.end(); ++it) { for (auto it = spec.apiParams.begin(); it != spec.apiParams.end(); ++it) {
os << *it << (it + 1 == spec.apiParams.end() ? "" : " "); os << *it << (it + 1 == spec.apiParams.end() ? "" : " ");
} }
os << "), Server: " << spec.server << ", Server Params: ("; os << "), Provider: " << spec.provider << ", Provider Params: (";
for (auto it = spec.serverParams.begin(); it != spec.serverParams.end(); ++it) { for (auto it = spec.providerParams.begin(); it != spec.providerParams.end(); ++it) {
os << *it << (it + 1 == spec.serverParams.end() ? "" : " "); os << *it << (it + 1 == spec.providerParams.end() ? "" : " ");
} }
os << "), Device Selector: " << spec.deviceSelector << std::endl; os << "), Device Selector: " << spec.deviceSelector << std::endl;
return os; return os;
+2 -2
View File
@@ -97,8 +97,8 @@ spec_body:
$$->implexor = std::string($1); $$->implexor = std::string($1);
$$->api = std::string($3); $$->api = std::string($3);
$$->apiParams = std::move(*$5); $$->apiParams = std::move(*$5);
$$->server = std::string($8); $$->provider = std::string($8);
$$->serverParams = std::move(*$10); $$->providerParams = std::move(*$10);
$$->deviceSelector = std::string($13); $$->deviceSelector = std::string($13);
delete $5; delete $5;
delete $10; delete $10;
+2 -2
View File
@@ -16,8 +16,8 @@ public:
std::string implexor; std::string implexor;
std::string api; std::string api;
std::vector<std::string> apiParams; std::vector<std::string> apiParams;
std::string server; std::string provider;
std::vector<std::string> serverParams; std::vector<std::string> providerParams;
std::string deviceSelector; std::string deviceSelector;
friend std::ostream& operator<<( friend std::ostream& operator<<(