#include "LPCheck.hpp" #include "xml/XMLHelper.hpp" namespace { Extension& launchPhaseExtension() { static Extension* lpExtension = new LPExtension(); return *lpExtension; } }; // anonymous namespace void LPCheck::setExtension () { DOMElement *lpeCreate = xmlWriter->appendChild( xmlWriter->appendChild( command, "extension"), "launch:check", launchPhaseExtension().getURI()); } void LPCheck::addToCommand(const Command &command) const { XMLWriter* xmlWriter = command.getXmlWriter(); DOMElement* extensionElement = command.getExtensionElement(); DOMElement* createElement = xmlWriter->appendChild(extensionElement, "lauch:claims", launchPhaseExtension().getURI()); if (createData.get() != NULL) { createData->createXMLElement(xmlWriter, createElement); } }