Helper function to parse comma-separated string into vector.
| 72 | |
| 73 | // Helper function to parse comma-separated string into vector. |
| 74 | void stringToList(const std::string &Raw, std::vector<int> &Out) { |
| 75 | std::string Copy = Raw; |
| 76 | std::replace(Copy.begin(), Copy.end(), ',', ' '); |
| 77 | std::stringstream SS(Copy); |
| 78 | Out.clear(); |
| 79 | while (SS.good()) { |
| 80 | int TmpInt; |
| 81 | SS >> TmpInt; |
| 82 | Out.push_back(TmpInt); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // Parse metadata from JSON. |
| 87 | ErrNo parseMetadata(Graph &GraphRef, LocalConfig &ConfRef, |
no test coverage detected