18 #pragma GCC diagnostic push
19 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
20 #include <boost/algorithm/string.hpp>
21 #pragma GCC diagnostic pop
31 : currentNode(nullptr)
41 while ((thisNode = iter()))
58 while ((thisNode = iter()))
60 if (thisNode->
getType() == requiredType && thisNode->
getName() == requiredName)
66 if (thisNode->
getType() ==
"PHCompositeNode")
69 PHNode* nodeFoundInSubTree = nodeIter.
findFirst(requiredType.c_str(), requiredName.c_str());
70 if (nodeFoundInSubTree)
return nodeFoundInSubTree;
82 while ((thisNode = iter()))
84 if (thisNode->
getName() == requiredName)
90 if (thisNode->
getType() ==
"PHCompositeNode")
94 if (nodeFoundInSubTree)
96 return nodeFoundInSubTree;
107 if (pathString.empty())
116 std::vector<std::string> splitpath;
121 for (
const auto & iter : splitpath)
139 while ((subNode = subNodeIter()))
141 if (subNode->
getType() ==
"PHCompositeNode" && subNode->
getName() == iter)
167 while ((thisNode = iter()))
169 if (thisNode->
getType() ==
"PHCompositeNode")
171 PHNodeIterator subNodeIter(static_cast<PHCompositeNode*>(thisNode));
172 subNodeIter.
forEach(operation);