! returns child by node tag without failing */
| 66 | |
| 67 | /*! returns child by node tag without failing */ |
| 68 | const Ref<XML> childOpt(const std::string& childID) const |
| 69 | { |
| 70 | for (size_t i=0; i<children.size(); i++) |
| 71 | if (children[i]->name == childID) return children[i]; |
| 72 | return null; |
| 73 | } |
| 74 | |
| 75 | /*! adds a new parameter to the node */ |
| 76 | Ref<XML> add(const std::string& name, const std::string& val) { |
no test coverage detected