13 const std::size_t found = fqnNodeName.find_last_of(
"/");
14 if (found == std::string::npos) {
15 throw std::runtime_error(
"Invalid fully qualified node name: " + fqnNodeName);
17 return std::make_pair(fqnNodeName.substr(0, found), fqnNodeName.substr(found + 1));
21 constexpr
char whitespaces[] =
"\t\n\r ";
22 str.erase(0, str.find_first_not_of(whitespaces));
23 str.erase(str.find_last_not_of(whitespaces) + 1);
28 std::vector<std::string> definitions;
30 std::string line =
"";
33 while (std::getline(stream, line)) {