22 lines
754 B
C++
22 lines
754 B
C++
#include "se/LPE/LPChkCmdExtension.hpp"
|
|
#include "se/Command.hpp"
|
|
#include "se/LPE/LPExtension.hpp"
|
|
#include "xml/XMLHelper.hpp"
|
|
|
|
namespace {
|
|
LPExtension& lpExtension() {
|
|
static LPExtension* lpExtension = new LPExtension();
|
|
return *lpExtension;
|
|
}
|
|
}; // anonymous namespace
|
|
|
|
void LPChkCmdExtension::addToCommand(const Command &command) const
|
|
{
|
|
XMLWriter* xmlWriter = command.getXmlWriter();
|
|
DOMElement* extensionElement = command.getExtensionElement();
|
|
DOMElement* launchElement = xmlWriter->appendChild(extensionElement,
|
|
"check", lpExtension().getURI());
|
|
DOMElement* exPhaseElement = xmlWriter->appendChild(launchElement, "launch:phase");
|
|
XMLHelper::setTextContent(exPhaseElement, lpePhaseName);
|
|
}
|