string Node::toString() const { string nodeString ("Node \t "); nodeString += value; nodeString += "\n\t\t top-level children \t-> "; nodeString += printChildren() + ""; return nodeString; }
Node *SceneGraph::getNodes(const char *typeName) { Node *node = Parser::getNodes(); if (node == NULL) return NULL; String nodeString(node->getType()); if (nodeString.compareTo(typeName) == 0) return node; else return node->next(typeName); }