/* * Copyright (c) 2012 Jan Kaluza * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include #include #include #include #include namespace Swift { void PubSubPublishPayloadParser::handleTree(ParserElement::ref root) { std::string node = root->getAttributes().getAttribute("node"); if (!node.empty()) { getPayloadInternal()->setNode(node); } foreach (ParserElement::ref child, root->getAllChildren()) { getPayloadInternal()->addItem(TreeReparser::parseTree(child, factories)); } } }