MCPcopy Create free account
hub / github.com/Kitware/CMake / ReadClient

Method ReadClient

Source/cmFileAPI.cxx:392–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392void cmFileAPI::ReadClient(std::string const& client)
393{
394 // Load queries for the client.
395 std::string clientDir = cmStrCat(this->APIv1, "/query/", client);
396 std::vector<std::string> queries = this->LoadDir(clientDir);
397
398 // Read the queries and save for later.
399 ClientQuery& clientQuery = this->ClientQueries[client];
400 for (std::string& query : queries) {
401 if (query == "query.json") {
402 clientQuery.HaveQueryJson = true;
403 this->ReadClientQuery(client, clientQuery.QueryJson);
404 } else if (!this->ReadQuery(query, clientQuery.DirQuery.Known)) {
405 clientQuery.DirQuery.Unknown.push_back(std::move(query));
406 }
407 }
408}
409
410void cmFileAPI::ReadClientQuery(std::string const& client, ClientQueryJson& q)
411{

Callers 1

ReadQueriesMethod · 0.95

Calls 6

LoadDirMethod · 0.95
ReadClientQueryMethod · 0.95
ReadQueryMethod · 0.95
moveFunction · 0.85
push_backMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected