DeviceSpec: Rename server to provider
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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<<(
|
||||||
|
|||||||
Reference in New Issue
Block a user