commit | 744f57f7d64efe71c2b8168ecbdccd07297d7fbe | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubervac@fit.cvut.cz> | Fri Jun 29 22:46:26 2018 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Aug 02 18:41:22 2018 +0200 |
tree | a2dff67873d062f38a48828da8478a7459dc1b21 | |
parent | 44835867c199b69eaed7d20262c0342123c46929 [diff] [blame] |
Add modules Change-Id: Idafb0f57dd032d4f88658de15d293bdefac0567f
diff --git a/src/utils.cpp b/src/utils.cpp index b4f60ab..2900e14 100644 --- a/src/utils.cpp +++ b/src/utils.cpp
@@ -50,3 +50,12 @@ return ""; } } + +std::string fullNodeName(const path_& location, const ModuleNodePair& pair) +{ + if (!pair.first) { + return location.m_nodes.at(0).m_prefix.value().m_name + ":" + pair.second; + } else { + return pair.first.value() + ":" + pair.second; + } +}